#1D1877#1D1877

#1D1877 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.153 H 274.2°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#1D1877
RGBrgb(29, 24, 119)
HSLhsl(243, 66%, 28%)
HSVhsv(243, 80%, 47%)
CMYKcmyk(75.6%, 79.8%, 0%, 53.3%)
CIE-LABlab(16.73, 35.16, -52.65)
CIE-LCHlch(16.73, 63.31, 303.74°)
OKLaboklab(29.74% 0.0112 -0.1523)
OKLCHoklch(29.74% 0.153 274.2)
XYZxyz(4.1620, 2.2460, 17.6634)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1877 #727718
analogous
#184277 #1D1877 #4C1877
triadic
#1D1877 #771D18 #18771D
tetradic
#1D1877 #771842 #727718 #18774C
square
#1D1877 #771842 #727718 #18774C
split-complementary
#1D1877 #774C18 #427718
monochromatic
#060519 #110E44 #1D1877 #2922AA #3C33D6

Accessibility & contrast

On white

14.49
#1D1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1877
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1877#FFFFFF#000000##FFFFFF
##1D18771.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002575
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d1877;
/* rgb */ color: rgb(29, 24, 119);
/* oklch */ color: oklch(29.7% 0.153 274.2);
Tailwind
colors: {
  custom: {
    50: '#69579f',
    500: '#1d1877',
    950: '#000000',
  },
}
SCSS
$custom: #1d1877;
$custom-light: #69579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1877",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 243.158,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29739,
    "c": 0.1527,
    "h": 274.2
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#1D1877
secondary
#A6AC3F
accent
#E93EE0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1D1877

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

Preview Lab → · Contrast checker → · Palette generator →

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