#1D4F97#1D4F97

#1D4F97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.130 H 258.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#1D4F97
RGBrgb(29, 79, 151)
HSLhsl(215, 68%, 35%)
HSVhsv(215, 81%, 59%)
CMYKcmyk(80.8%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.16, 10.72, -44.18)
CIE-LCHlch(34.16, 45.46, 283.64°)
OKLaboklab(43.57% -0.0266 -0.1269)
OKLCHoklch(43.57% 0.13 258.2)
XYZxyz(8.8865, 8.0865, 30.3646)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F97 #97651D
analogous
#1D8C97 #1D4F97 #281D97
triadic
#1D4F97 #971D4F #4F971D
tetradic
#1D4F97 #971D8C #97651D #1D9728
square
#1D4F97 #971D8C #97651D #1D9728
split-complementary
#1D4F97 #97281D #8C971D
monochromatic
#091930 #133464 #1D4F97 #276ACA #518BDE

Accessibility & contrast

On white

8.02
#1D4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1D4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4F97
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F97#FFFFFF#000000##FFFFFF
##1D4F971.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#044B96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1d4f97;
/* rgb */ color: rgb(29, 79, 151);
/* oklch */ color: oklch(43.6% 0.130 258.2);
Tailwind
colors: {
  custom: {
    50: '#6d7fb6',
    500: '#1d4f97',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f97;
$custom-light: #6d7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f97",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 215.41,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43567,
    "c": 0.12964,
    "h": 258.2
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#1D4F97
secondary
#C0924F
accent
#A43DEB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1D4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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