#1D287A#1D287A

#1D287A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.139 H 270.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#1D287A
RGBrgb(29, 40, 122)
HSLhsl(233, 62%, 30%)
HSVhsv(233, 76%, 48%)
CMYKcmyk(76.2%, 67.2%, 0%, 52.2%)
CIE-LABlab(20.76, 26.06, -47.93)
CIE-LCHlch(20.76, 54.55, 298.53°)
OKLaboklab(32.73% 0.0014 -0.1385)
OKLCHoklch(32.73% 0.139 270.6)
XYZxyz(4.7771, 3.1834, 18.7713)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D287A #7A6F1D
analogous
#1D577A #1D287A #411D7A
triadic
#1D287A #7A1D28 #287A1D
tetradic
#1D287A #7A1D57 #7A6F1D #1D7A41
square
#1D287A #7A1D57 #7A6F1D #1D7A41
split-complementary
#1D287A #7A411D #577A1D
monochromatic
#060819 #111849 #1D287A #2938AB #4051D2

Accessibility & contrast

On white

12.83
#1D287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D287A
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D287A#FFFFFF#000000##FFFFFF
##1D287A1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d287a;
/* rgb */ color: rgb(29, 40, 122);
/* oklch */ color: oklch(32.7% 0.139 270.6);
Tailwind
colors: {
  custom: {
    50: '#6862a1',
    500: '#1d287a',
    950: '#000000',
  },
}
SCSS
$custom: #1d287a;
$custom-light: #6862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d287a",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 232.903,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32734,
    "c": 0.13855,
    "h": 270.6
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#1D287A
secondary
#AEA145
accent
#D243E5
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D287A

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

Preview Lab → · Contrast checker → · Palette generator →

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