#1D3F8B#1D3F8B

#1D3F8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.133 H 263.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1D3F8B
RGBrgb(29, 63, 139)
HSLhsl(221, 65%, 33%)
HSVhsv(221, 79%, 55%)
CMYKcmyk(79.1%, 54.7%, 0%, 45.5%)
CIE-LABlab(28.59, 16.82, -45.84)
CIE-LCHlch(28.59, 48.82, 290.15°)
OKLaboklab(39.03% -0.0153 -0.1321)
OKLCHoklch(39.03% 0.133 263.4)
XYZxyz(6.9427, 5.6795, 25.1514)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F8B #8B691D
analogous
#1D768B #1D3F8B #321D8B
triadic
#1D3F8B #8B1D3F #3F8B1D
tetradic
#1D3F8B #8B1D76 #8B691D #1D8B32
square
#1D3F8B #8B1D76 #8B691D #1D8B32
split-complementary
#1D3F8B #8B321D #768B1D
monochromatic
#081126 #122858 #1D3F8B #2856BE #4976D9

Accessibility & contrast

On white

9.83
#1D3F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1D3F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F8B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F8B#FFFFFF#000000##FFFFFF
##1D3F8B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04498E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3f8b;
/* rgb */ color: rgb(29, 63, 139);
/* oklch */ color: oklch(39.0% 0.133 263.4);
Tailwind
colors: {
  custom: {
    50: '#6b73ad',
    500: '#1d3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f8b;
$custom-light: #6b73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f8b",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 221.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39029,
    "c": 0.13297,
    "h": 263.4
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#1D3F8B
secondary
#BB9849
accent
#B43FE8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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