#1D237B#1D237B

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

Color values

HEX#1D237B
RGBrgb(29, 35, 123)
HSLhsl(236, 62%, 30%)
HSVhsv(236, 76%, 48%)
CMYKcmyk(76.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.61, 29.80, -50.46)
CIE-LCHlch(19.61, 58.60, 300.56°)
OKLaboklab(31.92% 0.0045 -0.146)
OKLCHoklch(31.92% 0.146 271.8)
XYZxyz(4.6817, 2.8928, 19.0467)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237B #7B751D
analogous
#1D527B #1D237B #461D7B
triadic
#1D237B #7B1D23 #237B1D
tetradic
#1D237B #7B1D52 #7B751D #1D7B46
square
#1D237B #7B1D52 #7B751D #1D7B46
split-complementary
#1D237B #7B461D #527B1D
monochromatic
#060719 #111549 #1D237B #2931AD #404AD2

Accessibility & contrast

On white

13.30
#1D237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237B
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237B#FFFFFF#000000##FFFFFF
##1D237B1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d237b;
/* rgb */ color: rgb(29, 35, 123);
/* oklch */ color: oklch(31.9% 0.146 271.8);
Tailwind
colors: {
  custom: {
    50: '#695ea2',
    500: '#1d237b',
    950: '#000000',
  },
}
SCSS
$custom: #1d237b;
$custom-light: #695ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237b",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 236.17,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31924,
    "c": 0.14604,
    "h": 271.8
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#1D237B
secondary
#AFA845
accent
#DB43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D237B

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

Preview Lab → · Contrast checker → · Palette generator →

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