#1D2971#1D2971

#1D2971 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.124 H 270.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#1D2971
RGBrgb(29, 41, 113)
HSLhsl(231, 59%, 28%)
HSVhsv(231, 74%, 44%)
CMYKcmyk(74.3%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.20, 21.84, -43.09)
CIE-LCHlch(20.20, 48.31, 296.89°)
OKLaboklab(32.06% 0.001 -0.1243)
OKLCHoklch(32.06% 0.124 270.4)
XYZxyz(4.2793, 3.0389, 15.9806)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2971 #71651D
analogous
#1D5371 #1D2971 #3B1D71
triadic
#1D2971 #711D29 #29711D
tetradic
#1D2971 #711D53 #71651D #1D713B
square
#1D2971 #711D53 #71651D #1D713B
split-complementary
#1D2971 #713B1D #53711D
monochromatic
#060918 #111740 #1D2971 #293BA2 #3C50CD

Accessibility & contrast

On white

13.06
#1D2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2971
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2971#FFFFFF#000000##FFFFFF
##1D29711.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2971;
/* rgb */ color: rgb(29, 41, 113);
/* oklch */ color: oklch(32.1% 0.124 270.4);
Tailwind
colors: {
  custom: {
    50: '#66629a',
    500: '#1d2971',
    950: '#000000',
  },
}
SCSS
$custom: #1d2971;
$custom-light: #66629a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2971",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 231.429,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.12434,
    "h": 270.4
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#1D2971
secondary
#A59744
accent
#CC45E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1D2971

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

Preview Lab → · Contrast checker → · Palette generator →

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