#1D3F8E#1D3F8E

#1D3F8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.137 H 263.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1D3F8E
RGBrgb(29, 63, 142)
HSLhsl(222, 66%, 34%)
HSVhsv(222, 80%, 56%)
CMYKcmyk(79.6%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.82, 18.02, -47.31)
CIE-LCHlch(28.82, 50.63, 290.86°)
OKLaboklab(39.28% -0.0151 -0.1364)
OKLCHoklch(39.28% 0.137 263.7)
XYZxyz(7.1649, 5.7684, 26.3217)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F8E #8E6C1D
analogous
#1D778E #1D3F8E #331D8E
triadic
#1D3F8E #8E1D3F #3F8E1D
tetradic
#1D3F8E #8E1D77 #8E6C1D #1D8E33
square
#1D3F8E #8E1D77 #8E6C1D #1D8E33
split-complementary
#1D3F8E #8E331D #778E1D
monochromatic
#081228 #13285B #1D3F8E #2756C1 #4B76DA

Accessibility & contrast

On white

9.75
#1D3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1D3F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F8E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F8E#FFFFFF#000000##FFFFFF
##1D3F8E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d3f8e;
/* rgb */ color: rgb(29, 63, 142);
/* oklch */ color: oklch(39.3% 0.137 263.7);
Tailwind
colors: {
  custom: {
    50: '#6c73b0',
    500: '#1d3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f8e;
$custom-light: #6c73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f8e",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 221.947,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39278,
    "c": 0.13725,
    "h": 263.7
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#1D3F8E
secondary
#BD9A4A
accent
#B63FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1D3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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