#1D3F8F#1D3F8F

#1D3F8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.139 H 263.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#1D3F8F
RGBrgb(29, 63, 143)
HSLhsl(222, 66%, 34%)
HSVhsv(222, 80%, 56%)
CMYKcmyk(79.7%, 55.9%, 0%, 43.9%)
CIE-LABlab(28.90, 18.43, -47.80)
CIE-LCHlch(28.90, 51.23, 291.08°)
OKLaboklab(39.36% -0.015 -0.1379)
OKLCHoklch(39.36% 0.139 263.8)
XYZxyz(7.2404, 5.7986, 26.7189)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F8F #8F6D1D
analogous
#1D788F #1D3F8F #341D8F
triadic
#1D3F8F #8F1D3F #3F8F1D
tetradic
#1D3F8F #8F1D78 #8F6D1D #1D8F34
square
#1D3F8F #8F1D78 #8F6D1D #1D8F34
split-complementary
#1D3F8F #8F341D #788F1D
monochromatic
#081229 #13295C #1D3F8F #2755C2 #4C76DB

Accessibility & contrast

On white

9.72
#1D3F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1D3F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F8F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F8F#FFFFFF#000000##FFFFFF
##1D3F8F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d3f8f;
/* rgb */ color: rgb(29, 63, 143);
/* oklch */ color: oklch(39.4% 0.139 263.8);
Tailwind
colors: {
  custom: {
    50: '#6c73b0',
    500: '#1d3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f8f;
$custom-light: #6c73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f8f",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 222.105,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.13867,
    "h": 263.8
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#1D3F8F
secondary
#BD9B4B
accent
#B63FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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