#1D3D8B#1D3D8B

#1D3D8B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.136 H 264.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1D3D8B
RGBrgb(29, 61, 139)
HSLhsl(223, 65%, 33%)
HSVhsv(223, 79%, 55%)
CMYKcmyk(79.1%, 56.1%, 0%, 45.5%)
CIE-LABlab(28.01, 18.20, -46.77)
CIE-LCHlch(28.01, 50.19, 291.27°)
OKLaboklab(38.59% -0.0138 -0.1349)
OKLCHoklch(38.59% 0.136 264.2)
XYZxyz(6.8340, 5.4620, 25.1152)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D8B #8B6B1D
analogous
#1D748B #1D3D8B #341D8B
triadic
#1D3D8B #8B1D3D #3D8B1D
tetradic
#1D3D8B #8B1D74 #8B6B1D #1D8B34
square
#1D3D8B #8B1D74 #8B6B1D #1D8B34
split-complementary
#1D3D8B #8B341D #748B1D
monochromatic
#081126 #122758 #1D3D8B #2853BE #4973D9

Accessibility & contrast

On white

10.04
#1D3D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1D3D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D8B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D8B#FFFFFF#000000##FFFFFF
##1D3D8B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d3d8b;
/* rgb */ color: rgb(29, 61, 139);
/* oklch */ color: oklch(38.6% 0.136 264.2);
Tailwind
colors: {
  custom: {
    50: '#6b72ad',
    500: '#1d3d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d8b;
$custom-light: #6b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d8b",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 139
  },
  "hsl": {
    "h": 222.545,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.13557,
    "h": 264.2
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#1D3D8B
secondary
#BB9A49
accent
#B73FE8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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