#1D226B#1D226B

#1D226B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.125 H 273.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#1D226B
RGBrgb(29, 34, 107)
HSLhsl(236, 57%, 27%)
HSVhsv(236, 73%, 42%)
CMYKcmyk(72.9%, 68.2%, 0%, 58%)
CIE-LABlab(17.77, 24.40, -43.17)
CIE-LCHlch(17.77, 49.59, 299.47°)
OKLaboklab(30.1% 0.0069 -0.1247)
OKLCHoklch(30.1% 0.125 273.1)
XYZxyz(3.7317, 2.4664, 14.1865)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D226B #6B661D
analogous
#1D496B #1D226B #3F1D6B
triadic
#1D226B #6B1D22 #226B1D
tetradic
#1D226B #6B1D49 #6B661D #1D6B3F
square
#1D226B #6B1D49 #6B661D #1D6B3F
split-complementary
#1D226B #6B3F1D #496B1D
monochromatic
#070818 #10133B #1D226B #2A319B #3942C9

Accessibility & contrast

On white

14.06
#1D226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1D226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D226B
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D226B#FFFFFF#000000##FFFFFF
##1D226B1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d226b;
/* rgb */ color: rgb(29, 34, 107);
/* oklch */ color: oklch(30.1% 0.125 273.1);
Tailwind
colors: {
  custom: {
    50: '#655d96',
    500: '#1d226b',
    950: '#000000',
  },
}
SCSS
$custom: #1d226b;
$custom-light: #655d96;
$custom-dark: #000000;
JSON
{
  "hex": "#1d226b",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 236.154,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30099,
    "c": 0.12486,
    "h": 273.1
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#1D226B
secondary
#A09A44
accent
#D747E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1D226B

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

Preview Lab → · Contrast checker → · Palette generator →

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