#1D3C81#1D3C81

#1D3C81 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.5% C 0.122 H 263.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1D3C81
RGBrgb(29, 60, 129)
HSLhsl(221, 63%, 31%)
HSVhsv(221, 78%, 51%)
CMYKcmyk(77.5%, 53.5%, 0%, 49.4%)
CIE-LABlab(26.95, 14.86, -42.27)
CIE-LCHlch(26.95, 44.80, 289.37°)
OKLaboklab(37.55% -0.014 -0.1216)
OKLCHoklch(37.55% 0.122 263.4)
XYZxyz(6.0836, 5.0772, 21.4240)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3C81 #81621D
analogous
#1D6E81 #1D3C81 #301D81
triadic
#1D3C81 #811D3C #3C811D
tetradic
#1D3C81 #811D6E #81621D #1D8130
square
#1D3C81 #811D6E #81621D #1D8130
split-complementary
#1D3C81 #81301D #6E811D
monochromatic
#070E1D #12254F #1D3C81 #2853B3 #4471D5

Accessibility & contrast

On white

10.42
#1D3C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1D3C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3C81
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3C81#FFFFFF#000000##FFFFFF
##1D3C811.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4583
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3c81;
/* rgb */ color: rgb(29, 60, 129);
/* oklch */ color: oklch(37.5% 0.122 263.4);
Tailwind
colors: {
  custom: {
    50: '#6971a6',
    500: '#1d3c81',
    950: '#000000',
  },
}
SCSS
$custom: #1d3c81;
$custom-light: #6971a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3c81",
  "rgb": {
    "r": 29,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 221.4,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.12244,
    "h": 263.4
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#1D3C81
secondary
#B49246
accent
#B341E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D3C81

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

Preview Lab → · Contrast checker → · Palette generator →

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