#1D1872#1D1872

#1D1872 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.146 H 274.8°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#1D1872
RGBrgb(29, 24, 114)
HSLhsl(243, 65%, 27%)
HSVhsv(243, 79%, 45%)
CMYKcmyk(74.6%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.15, 33.43, -50.38)
CIE-LCHlch(16.15, 60.46, 303.57°)
OKLaboklab(29.16% 0.0123 -0.1457)
OKLCHoklch(29.16% 0.146 274.8)
XYZxyz(3.8696, 2.1290, 16.1233)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1872 #6D7218
analogous
#184072 #1D1872 #4A1872
triadic
#1D1872 #721D18 #18721D
tetradic
#1D1872 #721840 #6D7218 #18724A
square
#1D1872 #721840 #6D7218 #18724A
split-complementary
#1D1872 #724A18 #407218
monochromatic
#060519 #100D3F #1D1872 #2A23A5 #3A31D4

Accessibility & contrast

On white

14.73
#1D1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1D1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1872
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1872#FFFFFF#000000##FFFFFF
##1D18721.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d1872;
/* rgb */ color: rgb(29, 24, 114);
/* oklch */ color: oklch(29.2% 0.146 274.8);
Tailwind
colors: {
  custom: {
    50: '#68569c',
    500: '#1d1872',
    950: '#000000',
  },
}
SCSS
$custom: #1d1872;
$custom-light: #68569c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1872",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 243.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.2916,
    "c": 0.14621,
    "h": 274.8
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#1D1872
secondary
#A2A73E
accent
#E840DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1872

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

Preview Lab → · Contrast checker → · Palette generator →

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