#1D3F8D#1D3F8D

#1D3F8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.136 H 263.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1D3F8D
RGBrgb(29, 63, 141)
HSLhsl(222, 66%, 33%)
HSVhsv(222, 79%, 55%)
CMYKcmyk(79.4%, 55.3%, 0%, 44.7%)
CIE-LABlab(28.74, 17.62, -46.82)
CIE-LCHlch(28.74, 50.03, 290.62°)
OKLaboklab(39.2% -0.0151 -0.135)
OKLCHoklch(39.2% 0.136 263.6)
XYZxyz(7.0902, 5.7385, 25.9281)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F8D #8D6B1D
analogous
#1D778D #1D3F8D #331D8D
triadic
#1D3F8D #8D1D3F #3F8D1D
tetradic
#1D3F8D #8D1D77 #8D6B1D #1D8D33
square
#1D3F8D #8D1D77 #8D6B1D #1D8D33
split-complementary
#1D3F8D #8D331D #778D1D
monochromatic
#081227 #13285A #1D3F8D #2756C0 #4B76DA

Accessibility & contrast

On white

9.78
#1D3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3F8D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F8D#FFFFFF#000000##FFFFFF
##1D3F8D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d3f8d;
/* rgb */ color: rgb(29, 63, 141);
/* oklch */ color: oklch(39.2% 0.136 263.6);
Tailwind
colors: {
  custom: {
    50: '#6b73af',
    500: '#1d3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f8d;
$custom-light: #6b73af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f8d",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 221.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39195,
    "c": 0.13583,
    "h": 263.6
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#1D3F8D
secondary
#BC994A
accent
#B53FE9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1D3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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