#1D4791#1D4791

#1D4791 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.3% C 0.131 H 260.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#1D4791
RGBrgb(29, 71, 145)
HSLhsl(218, 67%, 34%)
HSVhsv(218, 80%, 57%)
CMYKcmyk(80%, 51%, 0%, 43.1%)
CIE-LABlab(31.37, 13.73, -45.02)
CIE-LCHlch(31.37, 47.07, 286.95°)
OKLaboklab(41.29% -0.021 -0.1295)
OKLCHoklch(41.29% 0.131 260.8)
XYZxyz(7.8689, 6.8111, 27.6825)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4791 #91671D
analogous
#1D8191 #1D4791 #2D1D91
triadic
#1D4791 #911D47 #47911D
tetradic
#1D4791 #911D81 #91671D #1D912D
square
#1D4791 #911D81 #91671D #1D912D
split-complementary
#1D4791 #912D1D #81911D
monochromatic
#09152B #132E5E #1D4791 #2760C4 #4D81DB

Accessibility & contrast

On white

8.89
#1D4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1D4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4791
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4791#FFFFFF#000000##FFFFFF
##1D47911.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4F94
Deuteranopia (green-blind)
#004590
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1d4791;
/* rgb */ color: rgb(29, 71, 145);
/* oklch */ color: oklch(41.3% 0.131 260.8);
Tailwind
colors: {
  custom: {
    50: '#6c79b2',
    500: '#1d4791',
    950: '#000000',
  },
}
SCSS
$custom: #1d4791;
$custom-light: #6c79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4791",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 218.276,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41291,
    "c": 0.13122,
    "h": 260.8
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#1D4791
secondary
#BE954C
accent
#AC3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1D4791

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

Preview Lab → · Contrast checker → · Palette generator →

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