#1D1E8D#1D1E8D

#1D1E8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.175 H 271.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1D1E8D
RGBrgb(29, 30, 141)
HSLhsl(239, 66%, 33%)
HSVhsv(239, 79%, 55%)
CMYKcmyk(79.4%, 78.7%, 0%, 44.7%)
CIE-LABlab(20.49, 39.31, -60.35)
CIE-LCHlch(20.49, 72.03, 303.08°)
OKLaboklab(33.14% 0.0039 -0.1747)
OKLCHoklch(33.14% 0.175 271.3)
XYZxyz(5.7771, 3.1122, 25.4904)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1E8D #8D8C1D
analogous
#1D568D #1D1E8D #541D8D
triadic
#1D1E8D #8D1D1E #1E8D1D
tetradic
#1D1E8D #8D1D56 #8D8C1D #1D8D54
square
#1D1E8D #8D1D56 #8D8C1D #1D8D54
split-complementary
#1D1E8D #8D541D #568D1D
monochromatic
#080827 #13135A #1D1E8D #2729C0 #4B4CDA

Accessibility & contrast

On white

12.94
#1D1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1E8D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1E8D#FFFFFF#000000##FFFFFF
##1D1E8D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d1e8d;
/* rgb */ color: rgb(29, 30, 141);
/* oklch */ color: oklch(33.1% 0.175 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f5cb0',
    500: '#1d1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1e8d;
$custom-light: #6f5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1e8d",
  "rgb": {
    "r": 29,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 239.464,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33138,
    "c": 0.17478,
    "h": 271.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#1D1E8D
secondary
#BCBB4A
accent
#E73FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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