#1D1571#1D1571

#1D1571 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.148 H 275.5°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#1D1571
RGBrgb(29, 21, 113)
HSLhsl(245, 69%, 26%)
HSVhsv(245, 81%, 44%)
CMYKcmyk(74.3%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.43, 34.80, -50.92)
CIE-LCHlch(15.43, 61.68, 304.35°)
OKLaboklab(28.62% 0.0141 -0.1472)
OKLCHoklch(28.62% 0.148 275.5)
XYZxyz(3.7545, 1.9894, 15.8057)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1571 #697115
analogous
#153B71 #1D1571 #4B1571
triadic
#1D1571 #711D15 #15711D
tetradic
#1D1571 #71153B #697115 #15714B
square
#1D1571 #71153B #697115 #15714B
split-complementary
#1D1571 #714B15 #3B7115
monochromatic
#07051A #100B3D #1D1571 #2A1FA5 #3829D7

Accessibility & contrast

On white

15.02
#1D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1D1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1571
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1571#FFFFFF#000000##FFFFFF
##1D15711.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d1571;
/* rgb */ color: rgb(29, 21, 113);
/* oklch */ color: oklch(28.6% 0.148 275.5);
Tailwind
colors: {
  custom: {
    50: '#68559b',
    500: '#1d1571',
    950: '#000000',
  },
}
SCSS
$custom: #1d1571;
$custom-light: #68559b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1571",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 245.217,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.1479,
    "h": 275.5
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

primary
#1D1571
secondary
#9EA73B
accent
#EB3CDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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