#1D1578#1D1578

#1D1578 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.157 H 274.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#1D1578
RGBrgb(29, 21, 120)
HSLhsl(245, 70%, 28%)
HSVhsv(245, 83%, 47%)
CMYKcmyk(75.8%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.27, 37.16, -54.05)
CIE-LCHlch(16.27, 65.59, 304.51°)
OKLaboklab(29.45% 0.0123 -0.1563)
OKLCHoklch(29.45% 0.157 274.5)
XYZxyz(4.1639, 2.1532, 17.9618)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1578 #707815
analogous
#153F78 #1D1578 #4E1578
triadic
#1D1578 #781D15 #15781D
tetradic
#1D1578 #78153F #707815 #15784E
square
#1D1578 #78153F #707815 #15784E
split-complementary
#1D1578 #784E15 #3F7815
monochromatic
#06051A #100C44 #1D1578 #2A1EAC #3B2DDA

Accessibility & contrast

On white

14.68
#1D1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1D1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1578
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1578#FFFFFF#000000##FFFFFF
##1D15781.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d1578;
/* rgb */ color: rgb(29, 21, 120);
/* oklch */ color: oklch(29.5% 0.157 274.5);
Tailwind
colors: {
  custom: {
    50: '#6a55a0',
    500: '#1d1578',
    950: '#000000',
  },
}
SCSS
$custom: #1d1578;
$custom-light: #6a55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1578",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 244.848,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29454,
    "c": 0.1568,
    "h": 274.5
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#1D1578
secondary
#A4AE3B
accent
#ED3BDF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D1578

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

Preview Lab → · Contrast checker → · Palette generator →

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