#1D287E#1D287E

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

Color values

HEX#1D287E
RGBrgb(29, 40, 126)
HSLhsl(233, 63%, 30%)
HSVhsv(233, 77%, 49%)
CMYKcmyk(77%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.15, 27.60, -49.83)
CIE-LCHlch(21.15, 56.96, 298.98°)
OKLaboklab(33.13% 0.0011 -0.1441)
OKLCHoklch(33.13% 0.144 270.4)
XYZxyz(5.0301, 3.2846, 20.1035)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D287E #7E731D
analogous
#1D587E #1D287E #421D7E
triadic
#1D287E #7E1D28 #287E1D
tetradic
#1D287E #7E1D58 #7E731D #1D7E42
square
#1D287E #7E1D58 #7E731D #1D7E42
split-complementary
#1D287E #7E421D #587E1D
monochromatic
#06081B #12184C #1D287E #2838B0 #4252D3

Accessibility & contrast

On white

12.67
#1D287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D287E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D287E#FFFFFF#000000##FFFFFF
##1D287E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d287e;
/* rgb */ color: rgb(29, 40, 126);
/* oklch */ color: oklch(33.1% 0.144 270.4);
Tailwind
colors: {
  custom: {
    50: '#6962a4',
    500: '#1d287e',
    950: '#000000',
  },
}
SCSS
$custom: #1d287e;
$custom-light: #6962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d287e",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 233.196,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33134,
    "c": 0.14413,
    "h": 270.4
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D287E

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

Preview Lab → · Contrast checker → · Palette generator →

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