#2D1D97#2D1D97

#2D1D97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.184 H 277.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2D1D97
RGBrgb(45, 29, 151)
HSLhsl(248, 68%, 35%)
HSVhsv(248, 81%, 59%)
CMYKcmyk(70.2%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.55, 44.47, -63.10)
CIE-LCHlch(22.55, 77.20, 305.17°)
OKLaboklab(35.21% 0.023 -0.1824)
OKLCHoklch(35.21% 0.184 277.2)
XYZxyz(7.1057, 3.6703, 29.6061)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D97 #87971D
analogous
#1D4A97 #2D1D97 #6A1D97
triadic
#2D1D97 #972D1D #1D972D
tetradic
#2D1D97 #971D4A #87971D #1D976A
square
#2D1D97 #971D4A #87971D #1D976A
split-complementary
#2D1D97 #976A1D #4A971D
monochromatic
#0E0930 #1E1364 #2D1D97 #3C27CA #6351DE

Accessibility & contrast

On white

12.11
#2D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D1D97#FFFFFF#000000##FFFFFF
##2D1D971.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1d97;
/* rgb */ color: rgb(45, 29, 151);
/* oklch */ color: oklch(35.2% 0.184 277.2);
Tailwind
colors: {
  custom: {
    50: '#775db7',
    500: '#2d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d97;
$custom-light: #775db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d97",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 247.869,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35207,
    "c": 0.18379,
    "h": 277.2
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#2D1D97
secondary
#B2C04F
accent
#EB3DD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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