#1D2882#1D2882

#1D2882 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.150 H 270.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#1D2882
RGBrgb(29, 40, 130)
HSLhsl(233, 64%, 31%)
HSVhsv(233, 78%, 51%)
CMYKcmyk(77.7%, 69.2%, 0%, 49%)
CIE-LABlab(21.54, 29.12, -51.72)
CIE-LCHlch(21.54, 59.35, 299.38°)
OKLaboklab(33.54% 0.0007 -0.1496)
OKLCHoklch(33.54% 0.15 270.3)
XYZxyz(5.2934, 3.3899, 21.4901)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2882 #82771D
analogous
#1D5A82 #1D2882 #441D82
triadic
#1D2882 #821D28 #28821D
tetradic
#1D2882 #821D5A #82771D #1D8244
square
#1D2882 #821D5A #82771D #1D8244
split-complementary
#1D2882 #82441D #5A821D
monochromatic
#07091E #121950 #1D2882 #2837B4 #4454D5

Accessibility & contrast

On white

12.51
#1D2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2882
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2882#FFFFFF#000000##FFFFFF
##1D28821.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2882;
/* rgb */ color: rgb(29, 40, 130);
/* oklch */ color: oklch(33.5% 0.150 270.3);
Tailwind
colors: {
  custom: {
    50: '#6b62a7',
    500: '#1d2882',
    950: '#000000',
  },
}
SCSS
$custom: #1d2882;
$custom-light: #6b62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2882",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 233.465,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3354,
    "c": 0.14963,
    "h": 270.3
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#1D2882
secondary
#B5A946
accent
#D541E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1D2882

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

Preview Lab → · Contrast checker → · Palette generator →

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