#1D236B#1D236B

#1D236B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.124 H 272.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1D236B
RGBrgb(29, 35, 107)
HSLhsl(235, 57%, 27%)
HSVhsv(235, 73%, 42%)
CMYKcmyk(72.9%, 67.3%, 0%, 58%)
CIE-LABlab(18.03, 23.70, -42.74)
CIE-LCHlch(18.03, 48.87, 299.01°)
OKLaboklab(30.29% 0.0061 -0.1234)
OKLCHoklch(30.29% 0.124 272.8)
XYZxyz(3.7607, 2.5245, 14.1961)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D236B #6B651D
analogous
#1D4A6B #1D236B #3E1D6B
triadic
#1D236B #6B1D23 #236B1D
tetradic
#1D236B #6B1D4A #6B651D #1D6B3E
square
#1D236B #6B1D4A #6B651D #1D6B3E
split-complementary
#1D236B #6B3E1D #4A6B1D
monochromatic
#070818 #10133B #1D236B #2A339B #3944C9

Accessibility & contrast

On white

13.95
#1D236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D236B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D236B#FFFFFF#000000##FFFFFF
##1D236B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d236b;
/* rgb */ color: rgb(29, 35, 107);
/* oklch */ color: oklch(30.3% 0.124 272.8);
Tailwind
colors: {
  custom: {
    50: '#655e96',
    500: '#1d236b',
    950: '#000000',
  },
}
SCSS
$custom: #1d236b;
$custom-light: #655e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1d236b",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 235.385,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30291,
    "c": 0.12355,
    "h": 272.8
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#1D236B
secondary
#A09944
accent
#D547E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1D236B

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

Preview Lab → · Contrast checker → · Palette generator →

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