#1D2877#1D2877

#1D2877 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.134 H 270.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#1D2877
RGBrgb(29, 40, 119)
HSLhsl(233, 61%, 29%)
HSVhsv(233, 76%, 47%)
CMYKcmyk(75.6%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.48, 24.89, -46.48)
CIE-LCHlch(20.48, 52.72, 298.17°)
OKLaboklab(32.44% 0.0015 -0.1343)
OKLCHoklch(32.44% 0.134 270.6)
XYZxyz(4.5941, 3.1102, 17.8074)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2877 #776C1D
analogous
#1D5577 #1D2877 #3F1D77
triadic
#1D2877 #771D28 #28771D
tetradic
#1D2877 #771D55 #776C1D #1D773F
square
#1D2877 #771D55 #776C1D #1D773F
split-complementary
#1D2877 #773F1D #55771D
monochromatic
#060819 #111746 #1D2877 #2939A8 #3E50D0

Accessibility & contrast

On white

12.95
#1D2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2877
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2877#FFFFFF#000000##FFFFFF
##1D28771.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2877;
/* rgb */ color: rgb(29, 40, 119);
/* oklch */ color: oklch(32.4% 0.134 270.6);
Tailwind
colors: {
  custom: {
    50: '#68629f',
    500: '#1d2877',
    950: '#000000',
  },
}
SCSS
$custom: #1d2877;
$custom-light: #68629f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2877",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 232.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32438,
    "c": 0.13431,
    "h": 270.6
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#1D2877
secondary
#AB9E45
accent
#D044E4
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1D2877

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

Preview Lab → · Contrast checker → · Palette generator →

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