#1D1D97#1D1D97

#1D1D97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.188 H 270.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1D1D97
RGBrgb(29, 29, 151)
HSLhsl(240, 68%, 35%)
HSVhsv(240, 81%, 59%)
CMYKcmyk(80.8%, 80.8%, 0%, 40.8%)
CIE-LABlab(21.48, 43.22, -64.91)
CIE-LCHlch(21.48, 77.98, 303.66°)
OKLaboklab(34.18% 0.0022 -0.1879)
OKLCHoklch(34.18% 0.188 270.7)
XYZxyz(6.5301, 3.3736, 29.5792)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1D97 #97971D
analogous
#1D5A97 #1D1D97 #5A1D97
triadic
#1D1D97 #971D1D #1D971D
tetradic
#1D1D97 #971D5A #97971D #1D975A
square
#1D1D97 #971D5A #97971D #1D975A
split-complementary
#1D1D97 #975A1D #5A971D
monochromatic
#090930 #131364 #1D1D97 #2727CA #5151DE

Accessibility & contrast

On white

12.54
#1D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1D97
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1D97#FFFFFF#000000##FFFFFF
##1D1D971.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002D95
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d1d97;
/* rgb */ color: rgb(29, 29, 151);
/* oklch */ color: oklch(34.2% 0.188 270.7);
Tailwind
colors: {
  custom: {
    50: '#715cb7',
    500: '#1d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #1d1d97;
$custom-light: #715cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1d97",
  "rgb": {
    "r": 29,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34181,
    "c": 0.18794,
    "h": 270.7
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#1D1D97
secondary
#C0C04F
accent
#EB3DEB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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