#1D237E#1D237E

#1D237E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.150 H 271.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#1D237E
RGBrgb(29, 35, 126)
HSLhsl(236, 63%, 30%)
HSVhsv(236, 77%, 49%)
CMYKcmyk(77%, 72.2%, 0%, 50.6%)
CIE-LABlab(19.92, 30.91, -51.86)
CIE-LCHlch(19.92, 60.37, 300.80°)
OKLaboklab(32.24% 0.0041 -0.15)
OKLCHoklch(32.24% 0.15 271.6)
XYZxyz(4.8723, 2.9691, 20.0509)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237E #7E781D
analogous
#1D537E #1D237E #481D7E
triadic
#1D237E #7E1D23 #237E1D
tetradic
#1D237E #7E1D53 #7E781D #1D7E48
square
#1D237E #7E1D53 #7E781D #1D7E48
split-complementary
#1D237E #7E481D #537E1D
monochromatic
#06071B #12154C #1D237E #2831B0 #424BD3

Accessibility & contrast

On white

13.17
#1D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237E#FFFFFF#000000##FFFFFF
##1D237E1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d237e;
/* rgb */ color: rgb(29, 35, 126);
/* oklch */ color: oklch(32.2% 0.150 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ea4',
    500: '#1d237e',
    950: '#000000',
  },
}
SCSS
$custom: #1d237e;
$custom-light: #6a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237e",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 236.289,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32242,
    "c": 0.15011,
    "h": 271.6
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#1D237E
secondary
#B1AB45
accent
#DC42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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