#1D238D#1D238D

#1D238D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.170 H 270.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1D238D
RGBrgb(29, 35, 141)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.4%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.53, 36.37, -58.64)
CIE-LCHlch(21.53, 69.00, 301.81°)
OKLaboklab(33.88% 0.0019 -0.1698)
OKLCHoklch(33.88% 0.17 270.7)
XYZxyz(5.9138, 3.3857, 25.5360)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238D #8D871D
analogous
#1D5B8D #1D238D #4F1D8D
triadic
#1D238D #8D1D23 #238D1D
tetradic
#1D238D #8D1D5B #8D871D #1D8D4F
square
#1D238D #8D1D5B #8D871D #1D8D4F
split-complementary
#1D238D #8D4F1D #5B8D1D
monochromatic
#080A27 #13165A #1D238D #2730C0 #4B52DA

Accessibility & contrast

On white

12.52
#1D238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D238D
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D238D#FFFFFF#000000##FFFFFF
##1D238D1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d238d;
/* rgb */ color: rgb(29, 35, 141);
/* oklch */ color: oklch(33.9% 0.170 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e5faf',
    500: '#1d238d',
    950: '#000000',
  },
}
SCSS
$custom: #1d238d;
$custom-light: #6e5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238d",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 236.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33875,
    "c": 0.16981,
    "h": 270.7
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#1D238D
secondary
#BCB64A
accent
#E03FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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