#1D228E#1D228E

#1D228E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.172 H 270.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1D228E
RGBrgb(29, 34, 142)
HSLhsl(237, 66%, 34%)
HSVhsv(237, 80%, 56%)
CMYKcmyk(79.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.42, 37.33, -59.43)
CIE-LCHlch(21.42, 70.18, 302.14°)
OKLaboklab(33.83% 0.0022 -0.1721)
OKLCHoklch(33.83% 0.172 270.7)
XYZxyz(5.9595, 3.3576, 25.9199)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D228E #8E891D
analogous
#1D5A8E #1D228E #501D8E
triadic
#1D228E #8E1D22 #228E1D
tetradic
#1D228E #8E1D5A #8E891D #1D8E50
square
#1D228E #8E1D5A #8E891D #1D8E50
split-complementary
#1D228E #8E501D #5A8E1D
monochromatic
#080A28 #13165B #1D228E #272EC1 #4B51DA

Accessibility & contrast

On white

12.56
#1D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D228E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D228E#FFFFFF#000000##FFFFFF
##1D228E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d228e;
/* rgb */ color: rgb(29, 34, 142);
/* oklch */ color: oklch(33.8% 0.172 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1d228e',
    950: '#000000',
  },
}
SCSS
$custom: #1d228e;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d228e",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 237.345,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33833,
    "c": 0.17211,
    "h": 270.7
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#1D228E
secondary
#BDB84A
accent
#E13FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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