#1D238B#1D238B

#1D238B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.167 H 270.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1D238B
RGBrgb(29, 35, 139)
HSLhsl(237, 65%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.31, 35.66, -57.75)
CIE-LCHlch(21.31, 67.87, 301.69°)
OKLaboklab(33.65% 0.0022 -0.1672)
OKLCHoklch(33.65% 0.167 270.8)
XYZxyz(5.7663, 3.3267, 24.7593)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238B #8B851D
analogous
#1D5A8B #1D238B #4E1D8B
triadic
#1D238B #8B1D23 #238B1D
tetradic
#1D238B #8B1D5A #8B851D #1D8B4E
square
#1D238B #8B1D5A #8B851D #1D8B4E
split-complementary
#1D238B #8B4E1D #5A8B1D
monochromatic
#080926 #121658 #1D238B #2830BE #4951D9

Accessibility & contrast

On white

12.61
#1D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D238B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D238B#FFFFFF#000000##FFFFFF
##1D238B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d238b;
/* rgb */ color: rgb(29, 35, 139);
/* oklch */ color: oklch(33.7% 0.167 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fae',
    500: '#1d238b',
    950: '#000000',
  },
}
SCSS
$custom: #1d238b;
$custom-light: #6d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238b",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 236.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.16724,
    "h": 270.8
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#1D238B
secondary
#BBB549
accent
#DF3FE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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