#1D1978#1D1978

#1D1978 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.153 H 273.9°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1D1978
RGBrgb(29, 25, 120)
HSLhsl(243, 66%, 28%)
HSVhsv(243, 79%, 47%)
CMYKcmyk(75.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.05, 34.93, -52.77)
CIE-LCHlch(17.05, 63.28, 303.51°)
OKLaboklab(30% 0.0105 -0.1526)
OKLCHoklch(30% 0.153 273.9)
XYZxyz(4.2434, 2.3121, 17.9883)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1978 #747819
analogous
#194478 #1D1978 #4C1978
triadic
#1D1978 #781D19 #19781D
tetradic
#1D1978 #781944 #747819 #19784C
square
#1D1978 #781944 #747819 #19784C
split-complementary
#1D1978 #784C19 #447819
monochromatic
#060519 #110E45 #1D1978 #2924AB #3D36D5

Accessibility & contrast

On white

14.36
#1D1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1978
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1978#FFFFFF#000000##FFFFFF
##1D19781.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d1978;
/* rgb */ color: rgb(29, 25, 120);
/* oklch */ color: oklch(30.0% 0.153 273.9);
Tailwind
colors: {
  custom: {
    50: '#6957a0',
    500: '#1d1978',
    950: '#000000',
  },
}
SCSS
$custom: #1d1978;
$custom-light: #6957a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1978",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 242.526,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29997,
    "c": 0.153,
    "h": 273.9
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#1D1978
secondary
#A8AD40
accent
#E83FE1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1D1978

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

Preview Lab → · Contrast checker → · Palette generator →

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