#1D3386#1D3386

#1D3386 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.141 H 267.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1D3386
RGBrgb(29, 51, 134)
HSLhsl(227, 64%, 32%)
HSVhsv(227, 78%, 53%)
CMYKcmyk(78.4%, 61.9%, 0%, 47.5%)
CIE-LABlab(24.79, 23.16, -48.90)
CIE-LCHlch(24.79, 54.11, 295.34°)
OKLaboklab(36.05% -0.0066 -0.1413)
OKLCHoklch(36.05% 0.141 267.3)
XYZxyz(5.9921, 4.3494, 23.0734)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3386 #86701D
analogous
#1D6786 #1D3386 #3C1D86
triadic
#1D3386 #861D33 #33861D
tetradic
#1D3386 #861D67 #86701D #1D863C
square
#1D3386 #861D67 #86701D #1D863C
split-complementary
#1D3386 #863C1D #67861D
monochromatic
#070D21 #122054 #1D3386 #2846B8 #4665D7

Accessibility & contrast

On white

11.23
#1D3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1D3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3386
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3386#FFFFFF#000000##FFFFFF
##1D33861.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d3386;
/* rgb */ color: rgb(29, 51, 134);
/* oklch */ color: oklch(36.0% 0.141 267.3);
Tailwind
colors: {
  custom: {
    50: '#6b6aaa',
    500: '#1d3386',
    950: '#000000',
  },
}
SCSS
$custom: #1d3386;
$custom-light: #6b6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3386",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 227.429,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36049,
    "c": 0.14145,
    "h": 267.3
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#1D3386
secondary
#B9A146
accent
#C440E7
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1D3386

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

Preview Lab → · Contrast checker → · Palette generator →

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