#1D4097#1D4097

#1D4097 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.149 H 264.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#1D4097
RGBrgb(29, 64, 151)
HSLhsl(223, 68%, 35%)
HSVhsv(223, 81%, 59%)
CMYKcmyk(80.8%, 57.6%, 0%, 40.8%)
CIE-LABlab(29.82, 20.94, -51.21)
CIE-LCHlch(29.82, 55.33, 292.24°)
OKLaboklab(40.25% -0.0151 -0.1479)
OKLCHoklch(40.25% 0.149 264.2)
XYZxyz(7.9240, 6.1614, 30.0438)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4097 #97741D
analogous
#1D7D97 #1D4097 #371D97
triadic
#1D4097 #971D40 #40971D
tetradic
#1D4097 #971D7D #97741D #1D9737
square
#1D4097 #971D7D #97741D #1D9737
split-complementary
#1D4097 #97371D #7D971D
monochromatic
#091430 #132A64 #1D4097 #2756CA #5179DE

Accessibility & contrast

On white

9.41
#1D4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1D4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4097
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4097#FFFFFF#000000##FFFFFF
##1D40971.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1d4097;
/* rgb */ color: rgb(29, 64, 151);
/* oklch */ color: oklch(40.3% 0.149 264.2);
Tailwind
colors: {
  custom: {
    50: '#6e74b6',
    500: '#1d4097',
    950: '#000000',
  },
}
SCSS
$custom: #1d4097;
$custom-light: #6e74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4097",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 222.787,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40254,
    "c": 0.14863,
    "h": 264.2
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#1D4097
secondary
#C0A04F
accent
#B93DEB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D4097

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

Preview Lab → · Contrast checker → · Palette generator →

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