#1D1B97#1D1B97

#1D1B97 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.190 H 270.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1D1B97
RGBrgb(29, 27, 151)
HSLhsl(241, 70%, 35%)
HSVhsv(241, 82%, 59%)
CMYKcmyk(80.8%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.13, 44.26, -65.49)
CIE-LCHlch(21.13, 79.05, 304.05°)
OKLaboklab(33.93% 0.0027 -0.1896)
OKLCHoklch(33.93% 0.19 270.8)
XYZxyz(6.4827, 3.2787, 29.5633)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B97 #95971B
analogous
#1B5797 #1D1B97 #5B1B97
triadic
#1D1B97 #971D1B #1B971D
tetradic
#1D1B97 #971B57 #95971B #1B975B
square
#1D1B97 #971B57 #95971B #1B975B
split-complementary
#1D1B97 #975B1B #57971B
monochromatic
#09082F #131263 #1D1B97 #2724CB #504DDF

Accessibility & contrast

On white

12.68
#1D1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1B97
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B97#FFFFFF#000000##FFFFFF
##1D1B971.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d1b97;
/* rgb */ color: rgb(29, 27, 151);
/* oklch */ color: oklch(33.9% 0.190 270.8);
Tailwind
colors: {
  custom: {
    50: '#715bb7',
    500: '#1d1b97',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b97;
$custom-light: #715bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b97",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 240.968,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.33933,
    "c": 0.18962,
    "h": 270.8
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#1D1B97
secondary
#C0C14C
accent
#EC3BEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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