#2D1C97#2D1C97

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

Color values

HEX#2D1C97
RGBrgb(45, 28, 151)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 81%, 59%)
CMYKcmyk(70.2%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.38, 44.96, -63.38)
CIE-LCHlch(22.38, 77.71, 305.35°)
OKLaboklab(35.09% 0.0234 -0.1831)
OKLCHoklch(35.09% 0.185 277.3)
XYZxyz(7.0815, 3.6221, 29.5981)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C97 #86971C
analogous
#1C4897 #2D1C97 #6B1C97
triadic
#2D1C97 #972D1C #1C972D
tetradic
#2D1C97 #971C48 #86971C #1C976B
square
#2D1C97 #971C48 #86971C #1C976B
split-complementary
#2D1C97 #976B1C #48971C
monochromatic
#0E0930 #1E1263 #2D1C97 #3C26CB #634FDE

Accessibility & contrast

On white

12.18
#2D1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1C97#FFFFFF#000000##FFFFFF
##2D1C971.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.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: #2d1c97;
/* rgb */ color: rgb(45, 28, 151);
/* oklch */ color: oklch(35.1% 0.185 277.3);
Tailwind
colors: {
  custom: {
    50: '#775cb7',
    500: '#2d1c97',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c97;
$custom-light: #775cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c97",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 248.293,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.18464,
    "h": 277.3
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#2D1C97
secondary
#B1C14E
accent
#EC3CD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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