#1D238C#1D238C

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

Color values

HEX#1D238C
RGBrgb(29, 35, 140)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.3%, 75%, 0%, 45.1%)
CIE-LABlab(21.42, 36.02, -58.19)
CIE-LCHlch(21.42, 68.44, 301.75°)
OKLaboklab(33.76% 0.0021 -0.1685)
OKLCHoklch(33.76% 0.169 270.7)
XYZxyz(5.8397, 3.3561, 25.1459)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238C #8C861D
analogous
#1D5A8C #1D238C #4E1D8C
triadic
#1D238C #8C1D23 #238C1D
tetradic
#1D238C #8C1D5A #8C861D #1D8C4E
square
#1D238C #8C1D5A #8C861D #1D8C4E
split-complementary
#1D238C #8C4E1D #5A8C1D
monochromatic
#080A27 #121659 #1D238C #2830BF #4A52D9

Accessibility & contrast

On white

12.56
#1D238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D238C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D238C#FFFFFF#000000##FFFFFF
##1D238C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d238c;
/* rgb */ color: rgb(29, 35, 140);
/* oklch */ color: oklch(33.8% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e5faf',
    500: '#1d238c',
    950: '#000000',
  },
}
SCSS
$custom: #1d238c;
$custom-light: #6e5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238c",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 236.757,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.16852,
    "h": 270.7
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#1D238C
secondary
#BCB549
accent
#DF3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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