#1D478C#1D478C

#1D478C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 40.9% C 0.124 H 259.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1D478C
RGBrgb(29, 71, 140)
HSLhsl(217, 66%, 33%)
HSVhsv(217, 79%, 55%)
CMYKcmyk(79.3%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.02, 11.71, -42.53)
CIE-LCHlch(31.02, 44.11, 285.39°)
OKLaboklab(40.91% -0.0218 -0.1222)
OKLCHoklch(40.91% 0.124 259.9)
XYZxyz(7.4918, 6.6603, 25.6966)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D478C #8C621D
analogous
#1D7E8C #1D478C #2A1D8C
triadic
#1D478C #8C1D47 #478C1D
tetradic
#1D478C #8C1D7E #8C621D #1D8C2A
square
#1D478C #8C1D7E #8C621D #1D8C2A
split-complementary
#1D478C #8C2A1D #7E8C1D
monochromatic
#081427 #122D59 #1D478C #2861BF #4A80D9

Accessibility & contrast

On white

9.00
#1D478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D478C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D478C#FFFFFF#000000##FFFFFF
##1D478C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8F
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d478c;
/* rgb */ color: rgb(29, 71, 140);
/* oklch */ color: oklch(40.9% 0.124 259.9);
Tailwind
colors: {
  custom: {
    50: '#6b79ae',
    500: '#1d478c',
    950: '#000000',
  },
}
SCSS
$custom: #1d478c;
$custom-light: #6b79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d478c",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 217.297,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40909,
    "c": 0.1241,
    "h": 259.9
  },
  "luminance": 0.06661
}

Semantic roles & 50–950 ramp

primary
#1D478C
secondary
#BC9049
accent
#A93FE9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1D478C

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

Preview Lab → · Contrast checker → · Palette generator →

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