#1D3B8A#1D3B8A

#1D3B8A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.137 H 264.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1D3B8A
RGBrgb(29, 59, 138)
HSLhsl(223, 65%, 33%)
HSVhsv(223, 79%, 54%)
CMYKcmyk(79%, 57.2%, 0%, 45.9%)
CIE-LABlab(27.36, 19.19, -47.21)
CIE-LCHlch(27.36, 50.96, 292.12°)
OKLaboklab(38.08% -0.0123 -0.1362)
OKLCHoklch(38.08% 0.137 264.8)
XYZxyz(6.6565, 5.2234, 24.6972)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3B8A #8A6C1D
analogous
#1D718A #1D3B8A #351D8A
triadic
#1D3B8A #8A1D3B #3B8A1D
tetradic
#1D3B8A #8A1D71 #8A6C1D #1D8A35
square
#1D3B8A #8A1D71 #8A6C1D #1D8A35
split-complementary
#1D3B8A #8A351D #718A1D
monochromatic
#081025 #122557 #1D3B8A #2851BD #4970D9

Accessibility & contrast

On white

10.27
#1D3B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1D3B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3B8A
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3B8A#FFFFFF#000000##FFFFFF
##1D3B8A1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3b8a;
/* rgb */ color: rgb(29, 59, 138);
/* oklch */ color: oklch(38.1% 0.137 264.8);
Tailwind
colors: {
  custom: {
    50: '#6b70ad',
    500: '#1d3b8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d3b8a;
$custom-light: #6b70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3b8a",
  "rgb": {
    "r": 29,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 223.486,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38077,
    "c": 0.13675,
    "h": 264.8
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#1D3B8A
secondary
#BB9B48
accent
#BA40E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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