#1D126F#1D126F

#1D126F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.148 H 276.2°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#1D126F
RGBrgb(29, 18, 111)
HSLhsl(247, 72%, 25%)
HSVhsv(247, 84%, 44%)
CMYKcmyk(73.9%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.63, 35.75, -50.94)
CIE-LCHlch(14.63, 62.24, 305.06°)
OKLaboklab(27.99% 0.0161 -0.1472)
OKLCHoklch(27.99% 0.148 276.2)
XYZxyz(3.5913, 1.8412, 15.2020)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D126F #646F12
analogous
#12356F #1D126F #4B126F
triadic
#1D126F #6F1D12 #126F1D
tetradic
#1D126F #6F1235 #646F12 #126F4B
square
#1D126F #6F1235 #646F12 #126F4B
split-complementary
#1D126F #6F4B12 #356F12
monochromatic
#07041A #0F093A #1D126F #2B1BA4 #3923D8

Accessibility & contrast

On white

15.35
#1D126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1D126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D126F
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D126F#FFFFFF#000000##FFFFFF
##1D126F1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1d126f;
/* rgb */ color: rgb(29, 18, 111);
/* oklch */ color: oklch(28.0% 0.148 276.2);
Tailwind
colors: {
  custom: {
    50: '#685399',
    500: '#1d126f',
    950: '#000000',
  },
}
SCSS
$custom: #1d126f;
$custom-light: #685399;
$custom-dark: #000000;
JSON
{
  "hex": "#1d126f",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 247.097,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27991,
    "c": 0.14813,
    "h": 276.2
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#1D126F
secondary
#99A637
accent
#EF39D9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D126F

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

Preview Lab → · Contrast checker → · Palette generator →

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