#1D237A#1D237A

#1D237A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.145 H 271.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1D237A
RGBrgb(29, 35, 122)
HSLhsl(236, 62%, 30%)
HSVhsv(236, 76%, 48%)
CMYKcmyk(76.2%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.51, 29.42, -49.99)
CIE-LCHlch(19.51, 58.00, 300.48°)
OKLaboklab(31.82% 0.0046 -0.1446)
OKLCHoklch(31.82% 0.145 271.8)
XYZxyz(4.6194, 2.8679, 18.7187)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237A #7A741D
analogous
#1D527A #1D237A #461D7A
triadic
#1D237A #7A1D23 #237A1D
tetradic
#1D237A #7A1D52 #7A741D #1D7A46
square
#1D237A #7A1D52 #7A741D #1D7A46
split-complementary
#1D237A #7A461D #527A1D
monochromatic
#060719 #111549 #1D237A #2931AB #4049D2

Accessibility & contrast

On white

13.35
#1D237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237A#FFFFFF#000000##FFFFFF
##1D237A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d237a;
/* rgb */ color: rgb(29, 35, 122);
/* oklch */ color: oklch(31.8% 0.145 271.8);
Tailwind
colors: {
  custom: {
    50: '#695ea1',
    500: '#1d237a',
    950: '#000000',
  },
}
SCSS
$custom: #1d237a;
$custom-light: #695ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237a",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 236.129,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.14467,
    "h": 271.8
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#1D237A
secondary
#AEA745
accent
#DA43E5
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D237A

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

Preview Lab → · Contrast checker → · Palette generator →

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