#1D3379#1D3379

#1D3379 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.123 H 266.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1D3379
RGBrgb(29, 51, 121)
HSLhsl(226, 61%, 29%)
HSVhsv(226, 76%, 47%)
CMYKcmyk(76%, 57.9%, 0%, 52.5%)
CIE-LABlab(23.70, 17.96, -42.50)
CIE-LCHlch(23.70, 46.14, 292.91°)
OKLaboklab(34.89% -0.0071 -0.1225)
OKLCHoklch(34.89% 0.123 266.7)
XYZxyz(5.1405, 4.0088, 18.5883)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3379 #79631D
analogous
#1D6179 #1D3379 #351D79
triadic
#1D3379 #791D33 #33791D
tetradic
#1D3379 #791D61 #79631D #1D7935
square
#1D3379 #791D61 #79631D #1D7935
split-complementary
#1D3379 #79351D #61791D
monochromatic
#060A19 #111E48 #1D3379 #2948AA #3F62D1

Accessibility & contrast

On white

11.66
#1D3379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1D3379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3379
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3379#FFFFFF#000000##FFFFFF
##1D33791.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#004450
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1d3379;
/* rgb */ color: rgb(29, 51, 121);
/* oklch */ color: oklch(34.9% 0.123 266.7);
Tailwind
colors: {
  custom: {
    50: '#676aa0',
    500: '#1d3379',
    950: '#000000',
  },
}
SCSS
$custom: #1d3379;
$custom-light: #676aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3379",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 225.652,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34888,
    "c": 0.12269,
    "h": 266.7
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#1D3379
secondary
#AD9445
accent
#BE43E4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1D3379

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

Preview Lab → · Contrast checker → · Palette generator →

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