#1D237F#1D237F

#1D237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.151 H 271.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#1D237F
RGBrgb(29, 35, 127)
HSLhsl(236, 63%, 31%)
HSVhsv(236, 77%, 50%)
CMYKcmyk(77.2%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.02, 31.28, -52.32)
CIE-LCHlch(20.02, 60.96, 300.88°)
OKLaboklab(32.35% 0.004 -0.1514)
OKLCHoklch(32.35% 0.151 271.5)
XYZxyz(4.9372, 2.9951, 20.3925)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237F #7F791D
analogous
#1D547F #1D237F #481D7F
triadic
#1D237F #7F1D23 #237F1D
tetradic
#1D237F #7F1D54 #7F791D #1D7F48
square
#1D237F #7F1D54 #7F791D #1D7F48
split-complementary
#1D237F #7F481D #547F1D
monochromatic
#06081B #12154D #1D237F #2831B1 #424BD4

Accessibility & contrast

On white

13.13
#1D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237F#FFFFFF#000000##FFFFFF
##1D237F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d237f;
/* rgb */ color: rgb(29, 35, 127);
/* oklch */ color: oklch(32.3% 0.151 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a5ea5',
    500: '#1d237f',
    950: '#000000',
  },
}
SCSS
$custom: #1d237f;
$custom-light: #6a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237f",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 236.327,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32349,
    "c": 0.15145,
    "h": 271.5
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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