#1D287D#1D287D

#1D287D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.143 H 270.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1D287D
RGBrgb(29, 40, 125)
HSLhsl(233, 62%, 30%)
HSVhsv(233, 77%, 49%)
CMYKcmyk(76.8%, 68%, 0%, 51%)
CIE-LABlab(21.05, 27.21, -49.36)
CIE-LCHlch(21.05, 56.36, 298.87°)
OKLaboklab(33.03% 0.0011 -0.1427)
OKLCHoklch(33.03% 0.143 270.5)
XYZxyz(4.9659, 3.2589, 19.7654)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D287D #7D721D
analogous
#1D587D #1D287D #421D7D
triadic
#1D287D #7D1D28 #287D1D
tetradic
#1D287D #7D1D58 #7D721D #1D7D42
square
#1D287D #7D1D58 #7D721D #1D7D42
split-complementary
#1D287D #7D421D #587D1D
monochromatic
#06081A #11184B #1D287D #2938AF #4152D3

Accessibility & contrast

On white

12.71
#1D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D287D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D287D#FFFFFF#000000##FFFFFF
##1D287D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d287d;
/* rgb */ color: rgb(29, 40, 125);
/* oklch */ color: oklch(33.0% 0.143 270.5);
Tailwind
colors: {
  custom: {
    50: '#6962a4',
    500: '#1d287d',
    950: '#000000',
  },
}
SCSS
$custom: #1d287d;
$custom-light: #6962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d287d",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 233.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.14274,
    "h": 270.5
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#1D287D
secondary
#B1A445
accent
#D342E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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