#1D237D#1D237D

#1D237D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 271.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1D237D
RGBrgb(29, 35, 125)
HSLhsl(236, 62%, 30%)
HSVhsv(236, 77%, 49%)
CMYKcmyk(76.8%, 72%, 0%, 51%)
CIE-LABlab(19.82, 30.54, -51.39)
CIE-LCHlch(19.82, 59.78, 300.72°)
OKLaboklab(32.14% 0.0042 -0.1487)
OKLCHoklch(32.14% 0.149 271.6)
XYZxyz(4.8081, 2.9434, 19.7128)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237D #7D771D
analogous
#1D537D #1D237D #471D7D
triadic
#1D237D #7D1D23 #237D1D
tetradic
#1D237D #7D1D53 #7D771D #1D7D47
square
#1D237D #7D1D53 #7D771D #1D7D47
split-complementary
#1D237D #7D471D #537D1D
monochromatic
#06071A #11154B #1D237D #2931AF #414AD3

Accessibility & contrast

On white

13.22
#1D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237D#FFFFFF#000000##FFFFFF
##1D237D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d237d;
/* rgb */ color: rgb(29, 35, 125);
/* oklch */ color: oklch(32.1% 0.149 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ea4',
    500: '#1d237d',
    950: '#000000',
  },
}
SCSS
$custom: #1d237d;
$custom-light: #6a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237d",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 236.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32136,
    "c": 0.14875,
    "h": 271.6
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#1D237D
secondary
#B1AA45
accent
#DB42E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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