#1D2771#1D2771

#1D2771 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.127 H 271.2°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#1D2771
RGBrgb(29, 39, 113)
HSLhsl(233, 59%, 28%)
HSVhsv(233, 74%, 44%)
CMYKcmyk(74.3%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.66, 23.25, -43.97)
CIE-LCHlch(19.66, 49.74, 297.86°)
OKLaboklab(31.66% 0.0026 -0.127)
OKLCHoklch(31.66% 0.127 271.2)
XYZxyz(4.2118, 2.9041, 15.9582)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2771 #71671D
analogous
#1D5171 #1D2771 #3D1D71
triadic
#1D2771 #711D27 #27711D
tetradic
#1D2771 #711D51 #71671D #1D713D
square
#1D2771 #711D51 #71671D #1D713D
split-complementary
#1D2771 #713D1D #51711D
monochromatic
#060818 #111640 #1D2771 #2938A2 #3C4DCD

Accessibility & contrast

On white

13.28
#1D2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2771
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2771#FFFFFF#000000##FFFFFF
##1D27711.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2771;
/* rgb */ color: rgb(29, 39, 113);
/* oklch */ color: oklch(31.7% 0.127 271.2);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1d2771',
    950: '#000000',
  },
}
SCSS
$custom: #1d2771;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2771",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 232.857,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3166,
    "c": 0.127,
    "h": 271.2
  },
  "luminance": 0.02905
}

Semantic roles & 50–950 ramp

primary
#1D2771
secondary
#A59A44
accent
#D045E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2771

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

Preview Lab → · Contrast checker → · Palette generator →

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