#1D1771#1D1771

#1D1771 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.146 H 275.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#1D1771
RGBrgb(29, 23, 113)
HSLhsl(244, 66%, 27%)
HSVhsv(244, 80%, 44%)
CMYKcmyk(74.3%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.83, 33.66, -50.26)
CIE-LCHlch(15.83, 60.49, 303.81°)
OKLaboklab(28.9% 0.0131 -0.1453)
OKLCHoklch(28.9% 0.146 275.2)
XYZxyz(3.7927, 2.0659, 15.8185)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1771 #6B7117
analogous
#173E71 #1D1771 #4A1771
triadic
#1D1771 #711D17 #17711D
tetradic
#1D1771 #71173E #6B7117 #17714A
square
#1D1771 #71173E #6B7117 #17714A
split-complementary
#1D1771 #714A17 #3E7117
monochromatic
#070519 #100D3E #1D1771 #2A21A4 #392ED4

Accessibility & contrast

On white

14.86
#1D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1D1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1771
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1771#FFFFFF#000000##FFFFFF
##1D17711.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d1771;
/* rgb */ color: rgb(29, 23, 113);
/* oklch */ color: oklch(28.9% 0.146 275.2);
Tailwind
colors: {
  custom: {
    50: '#68569b',
    500: '#1d1771',
    950: '#000000',
  },
}
SCSS
$custom: #1d1771;
$custom-light: #68569b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1771",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 244,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.289,
    "c": 0.14593,
    "h": 275.2
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#1D1771
secondary
#A0A73D
accent
#E93FDE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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