#1D126D#1D126D

#1D126D is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.146 H 276.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#1D126D
RGBrgb(29, 18, 109)
HSLhsl(247, 72%, 25%)
HSVhsv(247, 83%, 43%)
CMYKcmyk(73.4%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.39, 35.09, -50.04)
CIE-LCHlch(14.39, 61.12, 305.04°)
OKLaboklab(27.75% 0.0167 -0.1446)
OKLCHoklch(27.75% 0.146 276.6)
XYZxyz(3.4824, 1.7976, 14.6285)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D126D #626D12
analogous
#12346D #1D126D #4B126D
triadic
#1D126D #6D1D12 #126D1D
tetradic
#1D126D #6D1234 #626D12 #126D4B
square
#1D126D #6D1234 #626D12 #126D4B
split-complementary
#1D126D #6D4B12 #346D12
monochromatic
#07041A #0F0938 #1D126D #2B1BA2 #3923D6

Accessibility & contrast

On white

15.45
#1D126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D126D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D126D#FFFFFF#000000##FFFFFF
##1D126D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00206B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1d126d;
/* rgb */ color: rgb(29, 18, 109);
/* oklch */ color: oklch(27.8% 0.146 276.6);
Tailwind
colors: {
  custom: {
    50: '#675398',
    500: '#1d126d',
    950: '#000000',
  },
}
SCSS
$custom: #1d126d;
$custom-light: #675398;
$custom-dark: #000000;
JSON
{
  "hex": "#1d126d",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 247.253,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27751,
    "c": 0.14559,
    "h": 276.6
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#1D126D
secondary
#97A437
accent
#EE39D9
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D126D

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

Preview Lab → · Contrast checker → · Palette generator →

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