#1D229C#1D229C

#1D229C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.190 H 269.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#1D229C
RGBrgb(29, 34, 156)
HSLhsl(238, 69%, 36%)
HSVhsv(238, 81%, 61%)
CMYKcmyk(81.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.02, 42.18, -65.44)
CIE-LCHlch(23.02, 77.86, 302.81°)
OKLaboklab(35.43% -0.0003 -0.1895)
OKLCHoklch(35.43% 0.19 269.9)
XYZxyz(7.0774, 3.8047, 31.8074)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D229C #9C971D
analogous
#1D629C #1D229C #581D9C
triadic
#1D229C #9C1D22 #229C1D
tetradic
#1D229C #9C1D62 #9C971D #1D9C58
square
#1D229C #9C1D62 #9C971D #1D9C58
split-complementary
#1D229C #9C581D #629C1D
monochromatic
#0A0C35 #131768 #1D229C #272DD0 #545ADF

Accessibility & contrast

On white

11.92
#1D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D229C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D229C#FFFFFF#000000##FFFFFF
##1D229C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00309A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d229c;
/* rgb */ color: rgb(29, 34, 156);
/* oklch */ color: oklch(35.4% 0.190 269.9);
Tailwind
colors: {
  custom: {
    50: '#725fbb',
    500: '#1d229c',
    950: '#000000',
  },
}
SCSS
$custom: #1d229c;
$custom-light: #725fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d229c",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 237.638,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35429,
    "c": 0.18954,
    "h": 269.9
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#1D229C
secondary
#C2BE52
accent
#E53CEB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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