#1D1579#1D1579

#1D1579 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.158 H 274.4°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#1D1579
RGBrgb(29, 21, 121)
HSLhsl(245, 70%, 28%)
HSVhsv(245, 83%, 47%)
CMYKcmyk(76%, 82.6%, 0%, 52.5%)
CIE-LABlab(16.39, 37.49, -54.49)
CIE-LCHlch(16.39, 66.14, 304.53°)
OKLaboklab(29.57% 0.012 -0.1576)
OKLCHoklch(29.57% 0.158 274.4)
XYZxyz(4.2249, 2.1776, 18.2831)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1579 #717915
analogous
#153F79 #1D1579 #4F1579
triadic
#1D1579 #791D15 #15791D
tetradic
#1D1579 #79153F #717915 #15794F
square
#1D1579 #79153F #717915 #15794F
split-complementary
#1D1579 #794F15 #3F7915
monochromatic
#06051A #110C45 #1D1579 #291EAD #3C2EDB

Accessibility & contrast

On white

14.63
#1D1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1D1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1579
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1579#FFFFFF#000000##FFFFFF
##1D15791.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d1579;
/* rgb */ color: rgb(29, 21, 121);
/* oklch */ color: oklch(29.6% 0.158 274.4);
Tailwind
colors: {
  custom: {
    50: '#6a55a1',
    500: '#1d1579',
    950: '#000000',
  },
}
SCSS
$custom: #1d1579;
$custom-light: #6a55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1579",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 244.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29574,
    "c": 0.15805,
    "h": 274.4
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D1579

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

Preview Lab → · Contrast checker → · Palette generator →

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