#1D2478#1D2478

#1D2478 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.141 H 271.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#1D2478
RGBrgb(29, 36, 120)
HSLhsl(235, 61%, 29%)
HSVhsv(235, 76%, 47%)
CMYKcmyk(75.8%, 70%, 0%, 52.9%)
CIE-LABlab(19.55, 28.00, -48.64)
CIE-LCHlch(19.55, 56.12, 299.93°)
OKLaboklab(31.79% 0.0042 -0.1406)
OKLCHoklch(31.79% 0.141 271.7)
XYZxyz(4.5266, 2.8786, 18.0827)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2478 #78711D
analogous
#1D5278 #1D2478 #441D78
triadic
#1D2478 #781D24 #24781D
tetradic
#1D2478 #781D52 #78711D #1D7844
square
#1D2478 #781D52 #78711D #1D7844
split-complementary
#1D2478 #78441D #52781D
monochromatic
#060719 #111547 #1D2478 #2933A9 #3F4AD1

Accessibility & contrast

On white

13.33
#1D2478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D2478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2478
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2478#FFFFFF#000000##FFFFFF
##1D24781.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d2478;
/* rgb */ color: rgb(29, 36, 120);
/* oklch */ color: oklch(31.8% 0.141 271.7);
Tailwind
colors: {
  custom: {
    50: '#685fa0',
    500: '#1d2478',
    950: '#000000',
  },
}
SCSS
$custom: #1d2478;
$custom-light: #685fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2478",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 235.385,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31789,
    "c": 0.14071,
    "h": 271.7
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#1D2478
secondary
#ACA445
accent
#D844E4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1D2478

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

Preview Lab → · Contrast checker → · Palette generator →

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