#1D2487#1D2487

#1D2487 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.161 H 270.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1D2487
RGBrgb(29, 36, 135)
HSLhsl(236, 65%, 32%)
HSVhsv(236, 79%, 53%)
CMYKcmyk(78.5%, 73.3%, 0%, 47.1%)
CIE-LABlab(21.10, 33.59, -55.59)
CIE-LCHlch(21.10, 64.95, 301.14°)
OKLaboklab(33.38% 0.0024 -0.1609)
OKLCHoklch(33.38% 0.161 270.8)
XYZxyz(5.5093, 3.2716, 23.2581)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2487 #87801D
analogous
#1D5987 #1D2487 #4B1D87
triadic
#1D2487 #871D24 #24871D
tetradic
#1D2487 #871D59 #87801D #1D874B
square
#1D2487 #871D59 #87801D #1D874B
split-complementary
#1D2487 #874B1D #59871D
monochromatic
#070922 #121755 #1D2487 #2831B9 #4750D7

Accessibility & contrast

On white

12.69
#1D2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2487
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2487#FFFFFF#000000##FFFFFF
##1D24871.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d2487;
/* rgb */ color: rgb(29, 36, 135);
/* oklch */ color: oklch(33.4% 0.161 270.8);
Tailwind
colors: {
  custom: {
    50: '#6c5fab',
    500: '#1d2487',
    950: '#000000',
  },
}
SCSS
$custom: #1d2487;
$custom-light: #6c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2487",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 236.038,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33376,
    "c": 0.16095,
    "h": 270.8
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#1D2487
secondary
#B9B246
accent
#DD40E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D2487

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

Preview Lab → · Contrast checker → · Palette generator →

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