#1D238A#1D238A

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

Color values

HEX#1D238A
RGBrgb(29, 35, 138)
HSLhsl(237, 65%, 33%)
HSVhsv(237, 79%, 54%)
CMYKcmyk(79%, 74.6%, 0%, 45.9%)
CIE-LABlab(21.20, 35.30, -57.31)
CIE-LCHlch(21.20, 67.31, 301.63°)
OKLaboklab(33.54% 0.0024 -0.1659)
OKLCHoklch(33.54% 0.166 270.8)
XYZxyz(5.6936, 3.2976, 24.3763)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238A #8A841D
analogous
#1D5A8A #1D238A #4D1D8A
triadic
#1D238A #8A1D23 #238A1D
tetradic
#1D238A #8A1D5A #8A841D #1D8A4D
square
#1D238A #8A1D5A #8A841D #1D8A4D
split-complementary
#1D238A #8A4D1D #5A8A1D
monochromatic
#080925 #121657 #1D238A #2830BD #4951D9

Accessibility & contrast

On white

12.65
#1D238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D238A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D238A#FFFFFF#000000##FFFFFF
##1D238A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d238a;
/* rgb */ color: rgb(29, 35, 138);
/* oklch */ color: oklch(33.5% 0.166 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fad',
    500: '#1d238a',
    950: '#000000',
  },
}
SCSS
$custom: #1d238a;
$custom-light: #6d5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238a",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 236.697,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33543,
    "c": 0.16595,
    "h": 270.8
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#1D238A
secondary
#BBB448
accent
#DF40E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D238A

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

Preview Lab → · Contrast checker → · Palette generator →

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