#1D3D8E#1D3D8E

#1D3D8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.140 H 264.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#1D3D8E
RGBrgb(29, 61, 142)
HSLhsl(223, 66%, 34%)
HSVhsv(223, 80%, 56%)
CMYKcmyk(79.6%, 57%, 0%, 44.3%)
CIE-LABlab(28.25, 19.41, -48.24)
CIE-LCHlch(28.25, 52.00, 291.92°)
OKLaboklab(38.85% -0.0136 -0.1392)
OKLCHoklch(38.85% 0.14 264.4)
XYZxyz(7.0562, 5.5509, 26.2855)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D8E #8E6E1D
analogous
#1D758E #1D3D8E #351D8E
triadic
#1D3D8E #8E1D3D #3D8E1D
tetradic
#1D3D8E #8E1D75 #8E6E1D #1D8E35
square
#1D3D8E #8E1D75 #8E6E1D #1D8E35
split-complementary
#1D3D8E #8E351D #758E1D
monochromatic
#081128 #13275B #1D3D8E #2753C1 #4B74DA

Accessibility & contrast

On white

9.95
#1D3D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1D3D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D8E
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D8E#FFFFFF#000000##FFFFFF
##1D3D8E1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3d8e;
/* rgb */ color: rgb(29, 61, 142);
/* oklch */ color: oklch(38.8% 0.140 264.4);
Tailwind
colors: {
  custom: {
    50: '#6c72b0',
    500: '#1d3d8e',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d8e;
$custom-light: #6c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d8e",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 223.009,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38847,
    "c": 0.13984,
    "h": 264.4
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#1D3D8E
secondary
#BD9C4A
accent
#B93FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D3D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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