#1D3D8D#1D3D8D

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

Color values

HEX#1D3D8D
RGBrgb(29, 61, 141)
HSLhsl(223, 66%, 33%)
HSVhsv(223, 79%, 55%)
CMYKcmyk(79.4%, 56.7%, 0%, 44.7%)
CIE-LABlab(28.17, 19.01, -47.75)
CIE-LCHlch(28.17, 51.40, 291.71°)
OKLaboklab(38.76% -0.0136 -0.1377)
OKLCHoklch(38.76% 0.138 264.3)
XYZxyz(6.9814, 5.5210, 25.8918)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D8D #8D6D1D
analogous
#1D758D #1D3D8D #351D8D
triadic
#1D3D8D #8D1D3D #3D8D1D
tetradic
#1D3D8D #8D1D75 #8D6D1D #1D8D35
square
#1D3D8D #8D1D75 #8D6D1D #1D8D35
split-complementary
#1D3D8D #8D351D #758D1D
monochromatic
#081127 #13275A #1D3D8D #2753C0 #4B73DA

Accessibility & contrast

On white

9.98
#1D3D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3D8D
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D8D#FFFFFF#000000##FFFFFF
##1D3D8D1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d3d8d;
/* rgb */ color: rgb(29, 61, 141);
/* oklch */ color: oklch(38.8% 0.138 264.3);
Tailwind
colors: {
  custom: {
    50: '#6c72af',
    500: '#1d3d8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d8d;
$custom-light: #6c72af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d8d",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 222.857,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.13842,
    "h": 264.3
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

primary
#1D3D8D
secondary
#BC9B4A
accent
#B83FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D3D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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