#2D1B97#2D1B97

#2D1B97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.185 H 277.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2D1B97
RGBrgb(45, 27, 151)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 59%)
CMYKcmyk(70.2%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.22, 45.44, -63.66)
CIE-LCHlch(22.22, 78.21, 305.52°)
OKLaboklab(34.97% 0.0239 -0.1839)
OKLCHoklch(34.97% 0.185 277.4)
XYZxyz(7.0582, 3.5755, 29.5903)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B97 #85971B
analogous
#1B4797 #2D1B97 #6B1B97
triadic
#2D1B97 #972D1B #1B972D
tetradic
#2D1B97 #971B47 #85971B #1B976B
square
#2D1B97 #971B47 #85971B #1B976B
split-complementary
#2D1B97 #976B1B #47971B
monochromatic
#0E082F #1E1263 #2D1B97 #3C24CB #624DDF

Accessibility & contrast

On white

12.24
#2D1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D1B97#FFFFFF#000000##FFFFFF
##2D1B971.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1b97;
/* rgb */ color: rgb(45, 27, 151);
/* oklch */ color: oklch(35.0% 0.185 277.4);
Tailwind
colors: {
  custom: {
    50: '#775cb7',
    500: '#2d1b97',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b97;
$custom-light: #775cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b97",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 248.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.18547,
    "h": 277.4
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#2D1B97
secondary
#B0C14C
accent
#EC3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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