#1D229A#1D229A

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

Color values

HEX#1D229A
RGBrgb(29, 34, 154)
HSLhsl(238, 68%, 36%)
HSVhsv(238, 81%, 60%)
CMYKcmyk(81.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(22.78, 41.50, -64.59)
CIE-LCHlch(22.78, 76.78, 302.72°)
OKLaboklab(35.2% 0.0001 -0.1871)
OKLCHoklch(35.2% 0.187 270)
XYZxyz(6.9095, 3.7376, 30.9228)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D229A #9A951D
analogous
#1D609A #1D229A #561D9A
triadic
#1D229A #9A1D22 #229A1D
tetradic
#1D229A #9A1D60 #9A951D #1D9A56
square
#1D229A #9A1D60 #9A951D #1D9A56
split-complementary
#1D229A #9A561D #609A1D
monochromatic
#0A0B33 #131766 #1D229A #272DCE #5358DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D229A#FFFFFF#000000##FFFFFF
##1D229A1.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)
#003D9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d229a;
/* rgb */ color: rgb(29, 34, 154);
/* oklch */ color: oklch(35.2% 0.187 270.0);
Tailwind
colors: {
  custom: {
    50: '#725fb9',
    500: '#1d229a',
    950: '#000000',
  },
}
SCSS
$custom: #1d229a;
$custom-light: #725fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1d229a",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 237.6,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35198,
    "c": 0.18709,
    "h": 270
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#1D229A
secondary
#C2BD51
accent
#E43DEB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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