#1D226C#1D226C

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

Color values

HEX#1D226C
RGBrgb(29, 34, 108)
HSLhsl(236, 58%, 27%)
HSVhsv(236, 73%, 42%)
CMYKcmyk(73.1%, 68.5%, 0%, 57.6%)
CIE-LABlab(17.86, 24.78, -43.67)
CIE-LCHlch(17.86, 50.21, 299.57°)
OKLaboklab(30.2% 0.0068 -0.1261)
OKLCHoklch(30.2% 0.126 273.1)
XYZxyz(3.7846, 2.4876, 14.4652)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D226C #6C671D
analogous
#1D4A6C #1D226C #401D6C
triadic
#1D226C #6C1D22 #226C1D
tetradic
#1D226C #6C1D4A #6C671D #1D6C40
square
#1D226C #6C1D4A #6C671D #1D6C40
split-complementary
#1D226C #6C401D #4A6C1D
monochromatic
#060818 #10133C #1D226C #2A319C #3943CA

Accessibility & contrast

On white

14.02
#1D226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1D226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D226C
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D226C#FFFFFF#000000##FFFFFF
##1D226C1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d226c;
/* rgb */ color: rgb(29, 34, 108);
/* oklch */ color: oklch(30.2% 0.126 273.1);
Tailwind
colors: {
  custom: {
    50: '#655d97',
    500: '#1d226c',
    950: '#000000',
  },
}
SCSS
$custom: #1d226c;
$custom-light: #655d97;
$custom-dark: #000000;
JSON
{
  "hex": "#1d226c",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 236.203,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30199,
    "c": 0.12629,
    "h": 273.1
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D226C

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

Preview Lab → · Contrast checker → · Palette generator →

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