#1D1982#1D1982

#1D1982 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.166 H 272.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#1D1982
RGBrgb(29, 25, 130)
HSLhsl(242, 68%, 30%)
HSVhsv(242, 81%, 51%)
CMYKcmyk(77.7%, 80.8%, 0%, 49%)
CIE-LABlab(18.22, 38.36, -57.19)
CIE-LCHlch(18.22, 68.86, 303.85°)
OKLaboklab(31.17% 0.0082 -0.1655)
OKLCHoklch(31.17% 0.166 272.8)
XYZxyz(4.8822, 2.5677, 21.3531)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1982 #7E8219
analogous
#194982 #1D1982 #521982
triadic
#1D1982 #821D19 #19821D
tetradic
#1D1982 #821949 #7E8219 #198252
square
#1D1982 #821949 #7E8219 #198252
split-complementary
#1D1982 #825219 #498219
monochromatic
#06051B #120F4F #1D1982 #2823B5 #423CD9

Accessibility & contrast

On white

13.87
#1D1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1982
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1982#FFFFFF#000000##FFFFFF
##1D19821.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002780
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1982;
/* rgb */ color: rgb(29, 25, 130);
/* oklch */ color: oklch(31.2% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c58a8',
    500: '#1d1982',
    950: '#000000',
  },
}
SCSS
$custom: #1d1982;
$custom-light: #6c58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1982",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 242.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31168,
    "c": 0.16571,
    "h": 272.8
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#1D1982
secondary
#B1B641
accent
#EB3DE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1982

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

Preview Lab → · Contrast checker → · Palette generator →

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