#1D238E#1D238E

#1D238E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 270.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#1D238E
RGBrgb(29, 35, 142)
HSLhsl(237, 66%, 34%)
HSVhsv(237, 80%, 56%)
CMYKcmyk(79.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.64, 36.73, -59.08)
CIE-LCHlch(21.64, 69.56, 301.87°)
OKLaboklab(33.99% 0.0018 -0.1711)
OKLCHoklch(33.99% 0.171 270.6)
XYZxyz(5.9886, 3.4156, 25.9296)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238E #8E881D
analogous
#1D5B8E #1D238E #4F1D8E
triadic
#1D238E #8E1D23 #238E1D
tetradic
#1D238E #8E1D5B #8E881D #1D8E4F
square
#1D238E #8E1D5B #8E881D #1D8E4F
split-complementary
#1D238E #8E4F1D #5B8E1D
monochromatic
#080A28 #13165B #1D238E #2730C1 #4B53DA

Accessibility & contrast

On white

12.48
#1D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D238E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D238E#FFFFFF#000000##FFFFFF
##1D238E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d238e;
/* rgb */ color: rgb(29, 35, 142);
/* oklch */ color: oklch(34.0% 0.171 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e5fb0',
    500: '#1d238e',
    950: '#000000',
  },
}
SCSS
$custom: #1d238e;
$custom-light: #6e5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238e",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 236.814,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33986,
    "c": 0.17109,
    "h": 270.6
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#1D238E
secondary
#BDB74A
accent
#E03FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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