#1D1572#1D1572

#1D1572 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.149 H 275.3°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#1D1572
RGBrgb(29, 21, 114)
HSLhsl(245, 69%, 26%)
HSVhsv(245, 82%, 45%)
CMYKcmyk(74.6%, 81.6%, 0%, 55.3%)
CIE-LABlab(15.55, 35.14, -51.37)
CIE-LCHlch(15.55, 62.24, 304.38°)
OKLaboklab(28.74% 0.0139 -0.1485)
OKLCHoklch(28.74% 0.149 275.3)
XYZxyz(3.8111, 2.0121, 16.1038)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1572 #6A7215
analogous
#153C72 #1D1572 #4C1572
triadic
#1D1572 #721D15 #15721D
tetradic
#1D1572 #72153C #6A7215 #15724C
square
#1D1572 #72153C #6A7215 #15724C
split-complementary
#1D1572 #724C15 #3C7215
monochromatic
#07051A #100B3E #1D1572 #2A1FA6 #392AD8

Accessibility & contrast

On white

14.97
#1D1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1572
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1572#FFFFFF#000000##FFFFFF
##1D15721.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d1572;
/* rgb */ color: rgb(29, 21, 114);
/* oklch */ color: oklch(28.7% 0.149 275.3);
Tailwind
colors: {
  custom: {
    50: '#68559c',
    500: '#1d1572',
    950: '#000000',
  },
}
SCSS
$custom: #1d1572;
$custom-light: #68559c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1572",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 245.161,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28739,
    "c": 0.14918,
    "h": 275.3
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#1D1572
secondary
#9FA83B
accent
#EC3CDD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1572

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

Preview Lab → · Contrast checker → · Palette generator →

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