#1D2871#1D2871

#1D2871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.126 H 270.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#1D2871
RGBrgb(29, 40, 113)
HSLhsl(232, 59%, 28%)
HSVhsv(232, 74%, 44%)
CMYKcmyk(74.3%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.93, 22.55, -43.53)
CIE-LCHlch(19.93, 49.02, 297.38°)
OKLaboklab(31.86% 0.0018 -0.1257)
OKLCHoklch(31.86% 0.126 270.8)
XYZxyz(4.2451, 2.9706, 15.9692)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2871 #71661D
analogous
#1D5271 #1D2871 #3C1D71
triadic
#1D2871 #711D28 #28711D
tetradic
#1D2871 #711D52 #71661D #1D713C
square
#1D2871 #711D52 #71661D #1D713C
split-complementary
#1D2871 #713C1D #52711D
monochromatic
#060918 #111740 #1D2871 #2939A2 #3C4FCD

Accessibility & contrast

On white

13.17
#1D2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2871
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2871#FFFFFF#000000##FFFFFF
##1D28711.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d2871;
/* rgb */ color: rgb(29, 40, 113);
/* oklch */ color: oklch(31.9% 0.126 270.8);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1d2871',
    950: '#000000',
  },
}
SCSS
$custom: #1d2871;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2871",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 232.143,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31859,
    "c": 0.12567,
    "h": 270.8
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#1D2871
secondary
#A59944
accent
#CE45E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2871

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

Preview Lab → · Contrast checker → · Palette generator →

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