#1D2872#1D2872

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

Color values

HEX#1D2872
RGBrgb(29, 40, 114)
HSLhsl(232, 59%, 28%)
HSVhsv(232, 75%, 45%)
CMYKcmyk(74.6%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.02, 22.94, -44.03)
CIE-LCHlch(20.02, 49.64, 297.52°)
OKLaboklab(31.95% 0.0017 -0.1271)
OKLCHoklch(31.95% 0.127 270.8)
XYZxyz(4.3017, 2.9933, 16.2674)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2872 #72671D
analogous
#1D5272 #1D2872 #3C1D72
triadic
#1D2872 #721D28 #28721D
tetradic
#1D2872 #721D52 #72671D #1D723C
square
#1D2872 #721D52 #72671D #1D723C
split-complementary
#1D2872 #723C1D #52721D
monochromatic
#060918 #111741 #1D2872 #2939A3 #3C4FCD

Accessibility & contrast

On white

13.13
#1D2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1D2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2872
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2872#FFFFFF#000000##FFFFFF
##1D28721.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2872;
/* rgb */ color: rgb(29, 40, 114);
/* oklch */ color: oklch(32.0% 0.127 270.8);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1d2872',
    950: '#000000',
  },
}
SCSS
$custom: #1d2872;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2872",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 232.235,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31954,
    "c": 0.12713,
    "h": 270.8
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#1D2872
secondary
#A69A45
accent
#CE45E3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2872

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

Preview Lab → · Contrast checker → · Palette generator →

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