#1D3D99#1D3D99

#1D3D99 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.155 H 265.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#1D3D99
RGBrgb(29, 61, 153)
HSLhsl(225, 68%, 36%)
HSVhsv(225, 81%, 60%)
CMYKcmyk(81%, 60.1%, 0%, 40%)
CIE-LABlab(29.15, 23.79, -53.51)
CIE-LCHlch(29.15, 58.56, 293.97°)
OKLaboklab(39.81% -0.013 -0.1547)
OKLCHoklch(39.81% 0.155 265.2)
XYZxyz(7.9232, 5.8977, 30.8516)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D99 #99791D
analogous
#1D7B99 #1D3D99 #3B1D99
triadic
#1D3D99 #991D3D #3D991D
tetradic
#1D3D99 #991D7B #99791D #1D993B
square
#1D3D99 #991D7B #99791D #1D993B
split-complementary
#1D3D99 #993B1D #7B991D
monochromatic
#091432 #132866 #1D3D99 #2752CC #5276DE

Accessibility & contrast

On white

9.63
#1D3D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1D3D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D99
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D99#FFFFFF#000000##FFFFFF
##1D3D991.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d3d99;
/* rgb */ color: rgb(29, 61, 153);
/* oklch */ color: oklch(39.8% 0.155 265.2);
Tailwind
colors: {
  custom: {
    50: '#6f72b8',
    500: '#1d3d99',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d99;
$custom-light: #6f72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d99",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 224.516,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39807,
    "c": 0.15521,
    "h": 265.2
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

primary
#1D3D99
secondary
#C1A451
accent
#BE3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1D3D99

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

Preview Lab → · Contrast checker → · Palette generator →

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