#1D2978#1D2978

#1D2978 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.134 H 270.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#1D2978
RGBrgb(29, 41, 120)
HSLhsl(232, 61%, 29%)
HSVhsv(232, 76%, 47%)
CMYKcmyk(75.8%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.84, 24.59, -46.53)
CIE-LCHlch(20.84, 52.63, 297.86°)
OKLaboklab(32.73% 0.0008 -0.1344)
OKLCHoklch(32.73% 0.134 270.3)
XYZxyz(4.6886, 3.2027, 18.1367)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2978 #786C1D
analogous
#1D5778 #1D2978 #3F1D78
triadic
#1D2978 #781D29 #29781D
tetradic
#1D2978 #781D57 #786C1D #1D783F
square
#1D2978 #781D57 #786C1D #1D783F
split-complementary
#1D2978 #783F1D #57781D
monochromatic
#060819 #111847 #1D2978 #293AA9 #3F52D1

Accessibility & contrast

On white

12.80
#1D2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2978
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2978#FFFFFF#000000##FFFFFF
##1D29781.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d2978;
/* rgb */ color: rgb(29, 41, 120);
/* oklch */ color: oklch(32.7% 0.134 270.3);
Tailwind
colors: {
  custom: {
    50: '#6862a0',
    500: '#1d2978',
    950: '#000000',
  },
}
SCSS
$custom: #1d2978;
$custom-light: #6862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2978",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 232.088,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3273,
    "c": 0.13445,
    "h": 270.3
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#1D2978
secondary
#AC9E45
accent
#CF44E4
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1D2978

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

Preview Lab → · Contrast checker → · Palette generator →

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