#1D3E8B#1D3E8B

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

Color values

HEX#1D3E8B
RGBrgb(29, 62, 139)
HSLhsl(222, 65%, 33%)
HSVhsv(222, 79%, 55%)
CMYKcmyk(79.1%, 55.4%, 0%, 45.5%)
CIE-LABlab(28.30, 17.51, -46.31)
CIE-LCHlch(28.30, 49.51, 290.71°)
OKLaboklab(38.81% -0.0146 -0.1335)
OKLCHoklch(38.81% 0.134 263.8)
XYZxyz(6.8879, 5.5698, 25.1331)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3E8B #8B6A1D
analogous
#1D758B #1D3E8B #331D8B
triadic
#1D3E8B #8B1D3E #3E8B1D
tetradic
#1D3E8B #8B1D75 #8B6A1D #1D8B33
square
#1D3E8B #8B1D75 #8B6A1D #1D8B33
split-complementary
#1D3E8B #8B331D #758B1D
monochromatic
#081126 #122758 #1D3E8B #2855BE #4974D9

Accessibility & contrast

On white

9.93
#1D3E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3E8B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3E8B#FFFFFF#000000##FFFFFF
##1D3E8B1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3e8b;
/* rgb */ color: rgb(29, 62, 139);
/* oklch */ color: oklch(38.8% 0.134 263.8);
Tailwind
colors: {
  custom: {
    50: '#6b72ad',
    500: '#1d3e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d3e8b;
$custom-light: #6b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3e8b",
  "rgb": {
    "r": 29,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 222,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3881,
    "c": 0.13427,
    "h": 263.8
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#1D3E8B
secondary
#BB9949
accent
#B63FE8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D3E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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