#1D2873#1D2873

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

Color values

HEX#1D2873
RGBrgb(29, 40, 115)
HSLhsl(232, 60%, 28%)
HSVhsv(232, 75%, 45%)
CMYKcmyk(74.8%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.11, 23.33, -44.52)
CIE-LCHlch(20.11, 50.26, 297.66°)
OKLaboklab(32.05% 0.0017 -0.1286)
OKLCHoklch(32.05% 0.129 270.8)
XYZxyz(4.3589, 3.0162, 16.5688)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2873 #73681D
analogous
#1D5373 #1D2873 #3D1D73
triadic
#1D2873 #731D28 #28731D
tetradic
#1D2873 #731D53 #73681D #1D733D
square
#1D2873 #731D53 #73681D #1D733D
split-complementary
#1D2873 #733D1D #53731D
monochromatic
#060818 #111742 #1D2873 #2939A4 #3C4FCE

Accessibility & contrast

On white

13.10
#1D2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2873
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2873#FFFFFF#000000##FFFFFF
##1D28731.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2873;
/* rgb */ color: rgb(29, 40, 115);
/* oklch */ color: oklch(32.0% 0.129 270.8);
Tailwind
colors: {
  custom: {
    50: '#67619c',
    500: '#1d2873',
    950: '#000000',
  },
}
SCSS
$custom: #1d2873;
$custom-light: #67619c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2873",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 232.326,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.12857,
    "h": 270.8
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#1D2873
secondary
#A79B45
accent
#CF45E3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2873

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

Preview Lab → · Contrast checker → · Palette generator →

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