#1D20B3#1D20B3

#1D20B3 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.218 H 268.9°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#1D20B3
RGBrgb(29, 32, 179)
HSLhsl(239, 72%, 41%)
HSVhsv(239, 84%, 70%)
CMYKcmyk(83.8%, 82.1%, 0%, 29.8%)
CIE-LABlab(25.41, 50.74, -75.38)
CIE-LCHlch(25.41, 90.87, 303.95°)
OKLaboklab(37.9% -0.0041 -0.2183)
OKLCHoklch(37.9% 0.218 268.9)
XYZxyz(9.1571, 4.5478, 43.0343)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D20B3 #B3B01D
analogous
#1D6BB3 #1D20B3 #651DB3
triadic
#1D20B3 #B31D20 #20B31D
tetradic
#1D20B3 #B31D6B #B3B01D #1DB365
square
#1D20B3 #B31D6B #B3B01D #1DB365
split-complementary
#1D20B3 #B3651D #6BB31D
monochromatic
#0C0D4A #14177E #1D20B3 #3033DD #6467E6

Accessibility & contrast

On white

11.00
#1D20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1D20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D20B3
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D20B3#FFFFFF#000000##FFFFFF
##1D20B31.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1d20b3;
/* rgb */ color: rgb(29, 32, 179);
/* oklch */ color: oklch(37.9% 0.218 268.9);
Tailwind
colors: {
  custom: {
    50: '#7860cb',
    500: '#1d20b3',
    950: '#000000',
  },
}
SCSS
$custom: #1d20b3;
$custom-light: #7860cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d20b3",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 238.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.37895,
    "c": 0.21835,
    "h": 268.9
  },
  "luminance": 0.04549
}

Semantic roles & 50–950 ramp

primary
#1D20B3
secondary
#CBC961
accent
#EB39EF
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1D20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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