#1D1778#1D1778

#1D1778 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.155 H 274.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#1D1778
RGBrgb(29, 23, 120)
HSLhsl(244, 68%, 28%)
HSVhsv(244, 81%, 47%)
CMYKcmyk(75.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(16.65, 36.07, -53.42)
CIE-LCHlch(16.65, 64.46, 304.03°)
OKLaboklab(29.72% 0.0114 -0.1545)
OKLCHoklch(29.72% 0.155 274.2)
XYZxyz(4.2021, 2.2296, 17.9746)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1778 #727817
analogous
#174278 #1D1778 #4D1778
triadic
#1D1778 #781D17 #17781D
tetradic
#1D1778 #781742 #727817 #17784D
square
#1D1778 #781742 #727817 #17784D
split-complementary
#1D1778 #784D17 #427817
monochromatic
#06051A #110D45 #1D1778 #2921AB #3C32D8

Accessibility & contrast

On white

14.52
#1D1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1778
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1778#FFFFFF#000000##FFFFFF
##1D17781.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1778;
/* rgb */ color: rgb(29, 23, 120);
/* oklch */ color: oklch(29.7% 0.155 274.2);
Tailwind
colors: {
  custom: {
    50: '#6a56a0',
    500: '#1d1778',
    950: '#000000',
  },
}
SCSS
$custom: #1d1778;
$custom-light: #6a56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1778",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 243.711,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29717,
    "c": 0.15495,
    "h": 274.2
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#1D1778
secondary
#A6AD3E
accent
#EB3DE0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1D1778

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

Preview Lab → · Contrast checker → · Palette generator →

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