#1D1981#1D1981

#1D1981 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.164 H 272.9°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#1D1981
RGBrgb(29, 25, 129)
HSLhsl(242, 68%, 30%)
HSVhsv(242, 81%, 51%)
CMYKcmyk(77.5%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.10, 38.02, -56.76)
CIE-LCHlch(18.10, 68.31, 303.82°)
OKLaboklab(31.05% 0.0084 -0.1642)
OKLCHoklch(31.05% 0.164 272.9)
XYZxyz(4.8154, 2.5409, 21.0013)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1981 #7D8119
analogous
#194981 #1D1981 #511981
triadic
#1D1981 #811D19 #19811D
tetradic
#1D1981 #811949 #7D8119 #198151
square
#1D1981 #811949 #7D8119 #198151
split-complementary
#1D1981 #815119 #498119
monochromatic
#06051A #110F4E #1D1981 #2923B4 #413BD9

Accessibility & contrast

On white

13.92
#1D1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1981
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1981#FFFFFF#000000##FFFFFF
##1D19811.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1981;
/* rgb */ color: rgb(29, 25, 129);
/* oklch */ color: oklch(31.0% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#6c58a7',
    500: '#1d1981',
    950: '#000000',
  },
}
SCSS
$custom: #1d1981;
$custom-light: #6c58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1981",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 242.308,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31049,
    "c": 0.16445,
    "h": 272.9
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#1D1981
secondary
#B1B541
accent
#EA3DE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1981

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

Preview Lab → · Contrast checker → · Palette generator →

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