#1D478B#1D478B

#1D478B is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.8% C 0.123 H 259.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#1D478B
RGBrgb(29, 71, 139)
HSLhsl(217, 65%, 33%)
HSVhsv(217, 79%, 55%)
CMYKcmyk(79.1%, 48.9%, 0%, 45.5%)
CIE-LABlab(30.95, 11.30, -42.02)
CIE-LCHlch(30.95, 43.51, 285.05°)
OKLaboklab(40.83% -0.0219 -0.1207)
OKLCHoklch(40.83% 0.123 259.7)
XYZxyz(7.4184, 6.6309, 25.3100)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D478B #8B611D
analogous
#1D7E8B #1D478B #2A1D8B
triadic
#1D478B #8B1D47 #478B1D
tetradic
#1D478B #8B1D7E #8B611D #1D8B2A
square
#1D478B #8B1D7E #8B611D #1D8B2A
split-complementary
#1D478B #8B2A1D #7E8B1D
monochromatic
#081326 #122D58 #1D478B #2861BE #4980D9

Accessibility & contrast

On white

9.03
#1D478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1D478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D478B
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D478B#FFFFFF#000000##FFFFFF
##1D478B1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8E
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d478b;
/* rgb */ color: rgb(29, 71, 139);
/* oklch */ color: oklch(40.8% 0.123 259.7);
Tailwind
colors: {
  custom: {
    50: '#6b79ad',
    500: '#1d478b',
    950: '#000000',
  },
}
SCSS
$custom: #1d478b;
$custom-light: #6b79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d478b",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 217.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40833,
    "c": 0.12267,
    "h": 259.7
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#1D478B
secondary
#BB8F49
accent
#A83FE8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1D478B

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

Preview Lab → · Contrast checker → · Palette generator →

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