#1D2A87#1D2A87

#1D2A87 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.154 H 269.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1D2A87
RGBrgb(29, 42, 135)
HSLhsl(233, 65%, 32%)
HSVhsv(233, 79%, 53%)
CMYKcmyk(78.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(22.53, 29.69, -53.23)
CIE-LCHlch(22.53, 60.95, 299.15°)
OKLaboklab(34.41% -0.0009 -0.154)
OKLCHoklch(34.41% 0.154 269.7)
XYZxyz(5.7063, 3.6658, 23.3238)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A87 #877A1D
analogous
#1D5F87 #1D2A87 #451D87
triadic
#1D2A87 #871D2A #2A871D
tetradic
#1D2A87 #871D5F #877A1D #1D8745
square
#1D2A87 #871D5F #877A1D #1D8745
split-complementary
#1D2A87 #87451D #5F871D
monochromatic
#070B22 #121A55 #1D2A87 #283AB9 #4759D7

Accessibility & contrast

On white

12.12
#1D2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A87
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A87#FFFFFF#000000##FFFFFF
##1D2A871.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2a87;
/* rgb */ color: rgb(29, 42, 135);
/* oklch */ color: oklch(34.4% 0.154 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c63ab',
    500: '#1d2a87',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a87;
$custom-light: #6c63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a87",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 232.642,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.15404,
    "h": 269.7
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#1D2A87
secondary
#B9AB46
accent
#D340E8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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