#1D478E#1D478E

#1D478E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.1% C 0.127 H 260.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#1D478E
RGBrgb(29, 71, 142)
HSLhsl(218, 66%, 34%)
HSVhsv(218, 80%, 56%)
CMYKcmyk(79.6%, 50%, 0%, 44.3%)
CIE-LABlab(31.16, 12.51, -43.53)
CIE-LCHlch(31.16, 45.29, 286.04°)
OKLaboklab(41.06% -0.0215 -0.1251)
OKLCHoklch(41.06% 0.127 260.3)
XYZxyz(7.6406, 6.7198, 26.4803)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D478E #8E641D
analogous
#1D7F8E #1D478E #2B1D8E
triadic
#1D478E #8E1D47 #478E1D
tetradic
#1D478E #8E1D7F #8E641D #1D8E2B
square
#1D478E #8E1D7F #8E641D #1D8E2B
split-complementary
#1D478E #8E2B1D #7F8E1D
monochromatic
#081428 #132E5B #1D478E #2760C1 #4B80DA

Accessibility & contrast

On white

8.96
#1D478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1D478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D478E
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D478E#FFFFFF#000000##FFFFFF
##1D478E1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F91
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d478e;
/* rgb */ color: rgb(29, 71, 142);
/* oklch */ color: oklch(41.1% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#6b79b0',
    500: '#1d478e',
    950: '#000000',
  },
}
SCSS
$custom: #1d478e;
$custom-light: #6b79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d478e",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 217.699,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.12696,
    "h": 260.3
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#1D478E
secondary
#BD924A
accent
#AA3FE9
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1D478E

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

Preview Lab → · Contrast checker → · Palette generator →

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