#1D126A#1D126A

#1D126A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.142 H 277.1°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#1D126A
RGBrgb(29, 18, 106)
HSLhsl(248, 71%, 24%)
HSVhsv(248, 83%, 42%)
CMYKcmyk(72.6%, 83%, 0%, 58.4%)
CIE-LABlab(14.03, 34.09, -48.68)
CIE-LCHlch(14.03, 59.42, 305.00°)
OKLaboklab(27.39% 0.0176 -0.1407)
OKLCHoklch(27.39% 0.142 277.1)
XYZxyz(3.3237, 1.7341, 13.7924)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D126A #5F6A12
analogous
#12336A #1D126A #49126A
triadic
#1D126A #6A1D12 #126A1D
tetradic
#1D126A #6A1233 #5F6A12 #126A49
square
#1D126A #6A1233 #5F6A12 #126A49
split-complementary
#1D126A #6A4912 #336A12
monochromatic
#07041A #0F0936 #1D126A #2B1B9E #3A24D3

Accessibility & contrast

On white

15.59
#1D126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1D126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D126A
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D126A#FFFFFF#000000##FFFFFF
##1D126A1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1d126a;
/* rgb */ color: rgb(29, 18, 106);
/* oklch */ color: oklch(27.4% 0.142 277.1);
Tailwind
colors: {
  custom: {
    50: '#675296',
    500: '#1d126a',
    950: '#000000',
  },
}
SCSS
$custom: #1d126a;
$custom-light: #675296;
$custom-dark: #000000;
JSON
{
  "hex": "#1d126a",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 247.5,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27392,
    "c": 0.14175,
    "h": 277.1
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#1D126A
secondary
#94A236
accent
#EE3AD7
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1D126A

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

Preview Lab → · Contrast checker → · Palette generator →

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