#1D1478#1D1478

#1D1478 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.158 H 274.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#1D1478
RGBrgb(29, 20, 120)
HSLhsl(245, 71%, 27%)
HSVhsv(245, 83%, 47%)
CMYKcmyk(75.8%, 83.3%, 0%, 52.9%)
CIE-LABlab(16.09, 37.69, -54.35)
CIE-LCHlch(16.09, 66.13, 304.74°)
OKLaboklab(29.33% 0.0127 -0.1572)
OKLCHoklch(29.33% 0.158 274.6)
XYZxyz(4.1459, 2.1172, 17.9558)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1478 #6F7814
analogous
#143D78 #1D1478 #4F1478
triadic
#1D1478 #781D14 #14781D
tetradic
#1D1478 #78143D #6F7814 #14784F
square
#1D1478 #78143D #6F7814 #14784F
split-complementary
#1D1478 #784F14 #3D7814
monochromatic
#06041A #100B44 #1D1478 #2A1DAC #3B2BDC

Accessibility & contrast

On white

14.75
#1D1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1D1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1478
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1478#FFFFFF#000000##FFFFFF
##1D14781.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d1478;
/* rgb */ color: rgb(29, 20, 120);
/* oklch */ color: oklch(29.3% 0.158 274.6);
Tailwind
colors: {
  custom: {
    50: '#6a55a0',
    500: '#1d1478',
    950: '#000000',
  },
}
SCSS
$custom: #1d1478;
$custom-light: #6a55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1478",
  "rgb": {
    "r": 29,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 245.4,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29328,
    "c": 0.15768,
    "h": 274.6
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#1D1478
secondary
#A3AE3A
accent
#EE3ADE
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D1478

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

Preview Lab → · Contrast checker → · Palette generator →

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