#1D287F#1D287F

#1D287F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.146 H 270.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1D287F
RGBrgb(29, 40, 127)
HSLhsl(233, 63%, 31%)
HSVhsv(233, 77%, 50%)
CMYKcmyk(77.2%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.25, 27.98, -50.31)
CIE-LCHlch(21.25, 57.56, 299.08°)
OKLaboklab(33.24% 0.001 -0.1455)
OKLCHoklch(33.24% 0.146 270.4)
XYZxyz(5.0949, 3.3106, 20.4450)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D287F #7F741D
analogous
#1D597F #1D287F #431D7F
triadic
#1D287F #7F1D28 #287F1D
tetradic
#1D287F #7F1D59 #7F741D #1D7F43
square
#1D287F #7F1D59 #7F741D #1D7F43
split-complementary
#1D287F #7F431D #597F1D
monochromatic
#06091B #12184D #1D287F #2838B1 #4253D4

Accessibility & contrast

On white

12.63
#1D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D287F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D287F#FFFFFF#000000##FFFFFF
##1D287F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d287f;
/* rgb */ color: rgb(29, 40, 127);
/* oklch */ color: oklch(33.2% 0.146 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a62a5',
    500: '#1d287f',
    950: '#000000',
  },
}
SCSS
$custom: #1d287f;
$custom-light: #6a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d287f",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 233.265,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.14551,
    "h": 270.4
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#1D287F
secondary
#B2A645
accent
#D342E6
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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