#1D2879#1D2879

#1D2879 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.137 H 270.6°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1D2879
RGBrgb(29, 40, 121)
HSLhsl(233, 61%, 29%)
HSVhsv(233, 76%, 47%)
CMYKcmyk(76%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.67, 25.67, -47.44)
CIE-LCHlch(20.67, 53.94, 298.41°)
OKLaboklab(32.64% 0.0014 -0.1371)
OKLCHoklch(32.64% 0.137 270.6)
XYZxyz(4.7155, 3.1588, 18.4466)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2879 #796E1D
analogous
#1D5679 #1D2879 #401D79
triadic
#1D2879 #791D28 #28791D
tetradic
#1D2879 #791D56 #796E1D #1D7940
square
#1D2879 #791D56 #796E1D #1D7940
split-complementary
#1D2879 #79401D #56791D
monochromatic
#060819 #111848 #1D2879 #2938AA #3F51D1

Accessibility & contrast

On white

12.87
#1D2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1D2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2879
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2879#FFFFFF#000000##FFFFFF
##1D28791.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d2879;
/* rgb */ color: rgb(29, 40, 121);
/* oklch */ color: oklch(32.6% 0.137 270.6);
Tailwind
colors: {
  custom: {
    50: '#6862a1',
    500: '#1d2879',
    950: '#000000',
  },
}
SCSS
$custom: #1d2879;
$custom-light: #6862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2879",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 232.826,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32635,
    "c": 0.13714,
    "h": 270.6
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#1D2879
secondary
#ADA045
accent
#D143E4
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D2879

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

Preview Lab → · Contrast checker → · Palette generator →

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