#1D20A6#1D20A6

#1D20A6 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.3% C 0.203 H 269.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#1D20A6
RGBrgb(29, 32, 166)
HSLhsl(239, 70%, 38%)
HSVhsv(239, 83%, 65%)
CMYKcmyk(82.5%, 80.7%, 0%, 34.9%)
CIE-LABlab(23.82, 46.58, -70.19)
CIE-LCHlch(23.82, 84.24, 303.57°)
OKLaboklab(36.34% -0.0016 -0.2033)
OKLCHoklch(36.34% 0.203 269.5)
XYZxyz(7.9038, 4.0465, 36.4335)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D20A6 #A6A31D
analogous
#1D64A6 #1D20A6 #5E1DA6
triadic
#1D20A6 #A61D20 #20A61D
tetradic
#1D20A6 #A61D64 #A6A31D #1DA65E
square
#1D20A6 #A61D64 #A6A31D #1DA65E
split-complementary
#1D20A6 #A65E1D #64A61D
monochromatic
#0B0C3E #141672 #1D20A6 #272BD9 #5B5EE2

Accessibility & contrast

On white

11.61
#1D20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1D20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D20A6
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D20A6#FFFFFF#000000##FFFFFF
##1D20A61.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0031A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1d20a6;
/* rgb */ color: rgb(29, 32, 166);
/* oklch */ color: oklch(36.3% 0.203 269.5);
Tailwind
colors: {
  custom: {
    50: '#755fc2',
    500: '#1d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #1d20a6;
$custom-light: #755fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d20a6",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 238.686,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3634,
    "c": 0.20328,
    "h": 269.5
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#1D20A6
secondary
#C6C459
accent
#E93BED
background
#F7F5FC
surface
#EEE9F8
border
#C9C5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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