#1D125D#1D125D

#1D125D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.125 H 279.8°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#1D125D
RGBrgb(29, 18, 93)
HSLhsl(249, 68%, 22%)
HSVhsv(249, 81%, 36%)
CMYKcmyk(68.8%, 80.6%, 0%, 63.5%)
CIE-LABlab(12.51, 29.66, -42.56)
CIE-LCHlch(12.51, 51.88, 304.87°)
OKLaboklab(25.88% 0.0212 -0.1228)
OKLCHoklch(25.88% 0.125 279.8)
XYZxyz(2.6982, 1.4839, 10.4980)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D125D #525D12
analogous
#122D5D #1D125D #43125D
triadic
#1D125D #5D1D12 #125D1D
tetradic
#1D125D #5D122D #525D12 #125D43
square
#1D125D #5D122D #525D12 #125D43
split-complementary
#1D125D #5D4312 #2D5D12
monochromatic
#08051A #0D082A #1D125D #2D1C90 #3D26C4

Accessibility & contrast

On white

16.19
#1D125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1D125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D125D
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D125D#FFFFFF#000000##FFFFFF
##1D125D1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1d125d;
/* rgb */ color: rgb(29, 18, 93);
/* oklch */ color: oklch(25.9% 0.125 279.8);
Tailwind
colors: {
  custom: {
    50: '#63528c',
    500: '#1d125d',
    950: '#000000',
  },
}
SCSS
$custom: #1d125d;
$custom-light: #63528c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d125d",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 248.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25877,
    "c": 0.12467,
    "h": 279.8
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#1D125D
secondary
#879535
accent
#EA3DD1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D125D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1D125D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva