#1D3D8C#1D3D8C

#1D3D8C is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.137 H 264.3°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1D3D8C
RGBrgb(29, 61, 140)
HSLhsl(223, 66%, 33%)
HSVhsv(223, 79%, 55%)
CMYKcmyk(79.3%, 56.4%, 0%, 45.1%)
CIE-LABlab(28.09, 18.61, -47.26)
CIE-LCHlch(28.09, 50.79, 291.49°)
OKLaboklab(38.68% -0.0137 -0.1363)
OKLCHoklch(38.68% 0.137 264.3)
XYZxyz(6.9074, 5.4914, 25.5018)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D8C #8C6C1D
analogous
#1D748C #1D3D8C #351D8C
triadic
#1D3D8C #8C1D3D #3D8C1D
tetradic
#1D3D8C #8C1D74 #8C6C1D #1D8C35
square
#1D3D8C #8C1D74 #8C6C1D #1D8C35
split-complementary
#1D3D8C #8C351D #748C1D
monochromatic
#081127 #122759 #1D3D8C #2853BF #4A73D9

Accessibility & contrast

On white

10.01
#1D3D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1D3D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D8C
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D8C#FFFFFF#000000##FFFFFF
##1D3D8C1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d3d8c;
/* rgb */ color: rgb(29, 61, 140);
/* oklch */ color: oklch(38.7% 0.137 264.3);
Tailwind
colors: {
  custom: {
    50: '#6b72ae',
    500: '#1d3d8c',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d8c;
$custom-light: #6b72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d8c",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 140
  },
  "hsl": {
    "h": 222.703,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.137,
    "h": 264.3
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#1D3D8C
secondary
#BC9B49
accent
#B83FE9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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