#1D3D8F#1D3D8F

#1D3D8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.141 H 264.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#1D3D8F
RGBrgb(29, 61, 143)
HSLhsl(223, 66%, 34%)
HSVhsv(223, 80%, 56%)
CMYKcmyk(79.7%, 57.3%, 0%, 43.9%)
CIE-LABlab(28.33, 19.81, -48.73)
CIE-LCHlch(28.33, 52.60, 292.13°)
OKLaboklab(38.93% -0.0135 -0.1406)
OKLCHoklch(38.93% 0.141 264.5)
XYZxyz(7.1316, 5.5810, 26.6827)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D8F #8F6F1D
analogous
#1D768F #1D3D8F #361D8F
triadic
#1D3D8F #8F1D3D #3D8F1D
tetradic
#1D3D8F #8F1D76 #8F6F1D #1D8F36
square
#1D3D8F #8F1D76 #8F6F1D #1D8F36
split-complementary
#1D3D8F #8F361D #768F1D
monochromatic
#081229 #13275C #1D3D8F #2753C2 #4C74DB

Accessibility & contrast

On white

9.92
#1D3D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1D3D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D8F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D8F#FFFFFF#000000##FFFFFF
##1D3D8F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3d8f;
/* rgb */ color: rgb(29, 61, 143);
/* oklch */ color: oklch(38.9% 0.141 264.5);
Tailwind
colors: {
  custom: {
    50: '#6c72b0',
    500: '#1d3d8f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d8f;
$custom-light: #6c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d8f",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 223.158,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38932,
    "c": 0.14126,
    "h": 264.5
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#1D3D8F
secondary
#BD9D4B
accent
#B93FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1D3D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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