#1D1C97#1D1C97

#1D1C97 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.189 H 270.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1D1C97
RGBrgb(29, 28, 151)
HSLhsl(240, 69%, 35%)
HSVhsv(240, 81%, 59%)
CMYKcmyk(80.8%, 81.5%, 0%, 40.8%)
CIE-LABlab(21.30, 43.75, -65.20)
CIE-LCHlch(21.30, 78.52, 303.86°)
OKLaboklab(34.06% 0.0025 -0.1888)
OKLCHoklch(34.06% 0.189 270.7)
XYZxyz(6.5060, 3.3253, 29.5711)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1C97 #96971C
analogous
#1C5897 #1D1C97 #5B1C97
triadic
#1D1C97 #971D1C #1C971D
tetradic
#1D1C97 #971C58 #96971C #1C975B
square
#1D1C97 #971C58 #96971C #1C975B
split-complementary
#1D1C97 #975B1C #58971C
monochromatic
#090930 #131263 #1D1C97 #2726CB #504FDE

Accessibility & contrast

On white

12.61
#1D1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1C97
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1C97#FFFFFF#000000##FFFFFF
##1D1C971.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1c97;
/* rgb */ color: rgb(29, 28, 151);
/* oklch */ color: oklch(34.1% 0.189 270.7);
Tailwind
colors: {
  custom: {
    50: '#715bb7',
    500: '#1d1c97',
    950: '#000000',
  },
}
SCSS
$custom: #1d1c97;
$custom-light: #715bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1c97",
  "rgb": {
    "r": 29,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 240.488,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34055,
    "c": 0.1888,
    "h": 270.7
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#1D1C97
secondary
#C0C14E
accent
#EC3CEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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