#1D4197#1D4197

#1D4197 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.147 H 263.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1D4197
RGBrgb(29, 65, 151)
HSLhsl(222, 68%, 35%)
HSVhsv(222, 81%, 59%)
CMYKcmyk(80.8%, 57%, 0%, 40.8%)
CIE-LABlab(30.10, 20.26, -50.76)
CIE-LCHlch(30.10, 54.65, 291.76°)
OKLaboklab(40.47% -0.0158 -0.1465)
OKLCHoklch(40.47% 0.147 263.8)
XYZxyz(7.9809, 6.2752, 30.0628)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4197 #97731D
analogous
#1D7E97 #1D4197 #361D97
triadic
#1D4197 #971D41 #41971D
tetradic
#1D4197 #971D7E #97731D #1D9736
square
#1D4197 #971D7E #97731D #1D9736
split-complementary
#1D4197 #97361D #7E971D
monochromatic
#091530 #132B64 #1D4197 #2757CA #517ADE

Accessibility & contrast

On white

9.31
#1D4197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1D4197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4197
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4197#FFFFFF#000000##FFFFFF
##1D41971.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d4197;
/* rgb */ color: rgb(29, 65, 151);
/* oklch */ color: oklch(40.5% 0.147 263.8);
Tailwind
colors: {
  custom: {
    50: '#6e75b6',
    500: '#1d4197',
    950: '#000000',
  },
}
SCSS
$custom: #1d4197;
$custom-light: #6e75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4197",
  "rgb": {
    "r": 29,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 222.295,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40465,
    "c": 0.14736,
    "h": 263.8
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#1D4197
secondary
#C09F4F
accent
#B73DEB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D4197

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

Preview Lab → · Contrast checker → · Palette generator →

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