#1D229D#1D229D

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

Color values

HEX#1D229D
RGBrgb(29, 34, 157)
HSLhsl(238, 69%, 36%)
HSVhsv(238, 82%, 62%)
CMYKcmyk(81.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.13, 42.52, -65.86)
CIE-LCHlch(23.13, 78.39, 302.85°)
OKLaboklab(35.54% -0.0004 -0.1908)
OKLCHoklch(35.54% 0.191 269.9)
XYZxyz(7.1624, 3.8388, 32.2552)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D229D #9D981D
analogous
#1D629D #1D229D #581D9D
triadic
#1D229D #9D1D22 #229D1D
tetradic
#1D229D #9D1D62 #9D981D #1D9D58
square
#1D229D #9D1D62 #9D981D #1D9D58
split-complementary
#1D229D #9D581D #629D1D
monochromatic
#0A0C36 #131769 #1D229D #272DD1 #555AE0

Accessibility & contrast

On white

11.88
#1D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D229D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D229D#FFFFFF#000000##FFFFFF
##1D229D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d229d;
/* rgb */ color: rgb(29, 34, 157);
/* oklch */ color: oklch(35.5% 0.191 269.9);
Tailwind
colors: {
  custom: {
    50: '#725fbb',
    500: '#1d229d',
    950: '#000000',
  },
}
SCSS
$custom: #1d229d;
$custom-light: #725fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d229d",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 237.656,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35544,
    "c": 0.19076,
    "h": 269.9
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#1D229D
secondary
#C3BE53
accent
#E53CEC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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