#1D288E#1D288E

#1D288E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.166 H 269.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#1D288E
RGBrgb(29, 40, 142)
HSLhsl(234, 66%, 34%)
HSVhsv(234, 80%, 56%)
CMYKcmyk(79.6%, 71.8%, 0%, 44.3%)
CIE-LABlab(22.76, 33.61, -57.22)
CIE-LCHlch(22.76, 66.36, 300.43°)
OKLaboklab(34.79% -0.0005 -0.1657)
OKLCHoklch(34.79% 0.166 269.8)
XYZxyz(6.1463, 3.7311, 25.9822)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D288E #8E831D
analogous
#1D608E #1D288E #4A1D8E
triadic
#1D288E #8E1D28 #288E1D
tetradic
#1D288E #8E1D60 #8E831D #1D8E4A
square
#1D288E #8E1D60 #8E831D #1D8E4A
split-complementary
#1D288E #8E4A1D #608E1D
monochromatic
#080B28 #131A5B #1D288E #2736C1 #4B59DA

Accessibility & contrast

On white

12.02
#1D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1D288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D288E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D288E#FFFFFF#000000##FFFFFF
##1D288E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d288e;
/* rgb */ color: rgb(29, 40, 142);
/* oklch */ color: oklch(34.8% 0.166 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e62b0',
    500: '#1d288e',
    950: '#000000',
  },
}
SCSS
$custom: #1d288e;
$custom-light: #6e62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d288e",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 234.159,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34792,
    "c": 0.1657,
    "h": 269.8
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#1D288E
secondary
#BDB14A
accent
#D83FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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