#1D126E#1D126E

#1D126E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.147 H 276.4°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#1D126E
RGBrgb(29, 18, 110)
HSLhsl(247, 72%, 25%)
HSVhsv(247, 84%, 43%)
CMYKcmyk(73.6%, 83.6%, 0%, 56.9%)
CIE-LABlab(14.51, 35.42, -50.49)
CIE-LCHlch(14.51, 61.68, 305.05°)
OKLaboklab(27.87% 0.0164 -0.1459)
OKLCHoklch(27.87% 0.147 276.4)
XYZxyz(3.5366, 1.8193, 14.9136)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D126E #636E12
analogous
#12356E #1D126E #4B126E
triadic
#1D126E #6E1D12 #126E1D
tetradic
#1D126E #6E1235 #636E12 #126E4B
square
#1D126E #6E1235 #636E12 #126E4B
split-complementary
#1D126E #6E4B12 #356E12
monochromatic
#07041A #0F0939 #1D126E #2B1BA3 #3923D7

Accessibility & contrast

On white

15.40
#1D126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1D126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D126E
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D126E#FFFFFF#000000##FFFFFF
##1D126E1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1d126e;
/* rgb */ color: rgb(29, 18, 110);
/* oklch */ color: oklch(27.9% 0.147 276.4);
Tailwind
colors: {
  custom: {
    50: '#685399',
    500: '#1d126e',
    950: '#000000',
  },
}
SCSS
$custom: #1d126e;
$custom-light: #685399;
$custom-dark: #000000;
JSON
{
  "hex": "#1d126e",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 247.174,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.14687,
    "h": 276.4
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#1D126E
secondary
#98A537
accent
#EF39D9
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D126E

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

Preview Lab → · Contrast checker → · Palette generator →

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