#1D3994#1D3994

#1D3994 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.153 H 266.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#1D3994
RGBrgb(29, 57, 148)
HSLhsl(226, 67%, 35%)
HSVhsv(226, 80%, 58%)
CMYKcmyk(80.4%, 61.5%, 0%, 42%)
CIE-LABlab(27.64, 24.56, -52.92)
CIE-LCHlch(27.64, 58.34, 294.89°)
OKLaboklab(38.55% -0.0105 -0.153)
OKLCHoklch(38.55% 0.153 266.1)
XYZxyz(7.3132, 5.3247, 28.6536)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3994 #94781D
analogous
#1D7594 #1D3994 #3C1D94
triadic
#1D3994 #941D39 #39941D
tetradic
#1D3994 #941D75 #94781D #1D943C
square
#1D3994 #941D75 #94781D #1D943C
split-complementary
#1D3994 #943C1D #75941D
monochromatic
#09122E #132561 #1D3994 #274DC7 #4F70DC

Accessibility & contrast

On white

10.17
#1D3994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1D3994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3994
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3994#FFFFFF#000000##FFFFFF
##1D39941.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3994;
/* rgb */ color: rgb(29, 57, 148);
/* oklch */ color: oklch(38.5% 0.153 266.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fb4',
    500: '#1d3994',
    950: '#000000',
  },
}
SCSS
$custom: #1d3994;
$custom-light: #6e6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3994",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 225.882,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.15336,
    "h": 266.1
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#1D3994
secondary
#BFA44E
accent
#C23EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1D3994

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

Preview Lab → · Contrast checker → · Palette generator →

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