#1D229E#1D229E

#1D229E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.192 H 269.8°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#1D229E
RGBrgb(29, 34, 158)
HSLhsl(238, 69%, 37%)
HSVhsv(238, 82%, 62%)
CMYKcmyk(81.6%, 78.5%, 0%, 38%)
CIE-LABlab(23.25, 42.86, -66.28)
CIE-LCHlch(23.25, 78.93, 302.89°)
OKLaboklab(35.66% -0.0006 -0.192)
OKLCHoklch(35.66% 0.192 269.8)
XYZxyz(7.2482, 3.8730, 32.7067)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D229E #9E991D
analogous
#1D639E #1D229E #581D9E
triadic
#1D229E #9E1D22 #229E1D
tetradic
#1D229E #9E1D63 #9E991D #1D9E58
square
#1D229E #9E1D63 #9E991D #1D9E58
split-complementary
#1D229E #9E581D #639E1D
monochromatic
#0A0C37 #14176A #1D229E #262DD2 #565BE0

Accessibility & contrast

On white

11.83
#1D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1D229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D229E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D229E#FFFFFF#000000##FFFFFF
##1D229E1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d229e;
/* rgb */ color: rgb(29, 34, 158);
/* oklch */ color: oklch(35.7% 0.192 269.8);
Tailwind
colors: {
  custom: {
    50: '#735fbc',
    500: '#1d229e',
    950: '#000000',
  },
}
SCSS
$custom: #1d229e;
$custom-light: #735fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d229e",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 237.674,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3566,
    "c": 0.19197,
    "h": 269.8
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#1D229E
secondary
#C3BF54
accent
#E53CEC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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