#2D1676#2D1676

#2D1676 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.150 H 284.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2D1676
RGBrgb(45, 22, 118)
HSLhsl(254, 69%, 27%)
HSVhsv(254, 81%, 46%)
CMYKcmyk(61.9%, 81.4%, 0%, 53.7%)
CIE-LABlab(17.64, 37.70, -50.45)
CIE-LCHlch(17.64, 62.98, 306.77°)
OKLaboklab(30.7% 0.0369 -0.1454)
OKLCHoklch(30.7% 0.15 284.2)
XYZxyz(4.6381, 2.4394, 17.3625)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1676 #5F7616
analogous
#162F76 #2D1676 #5D1676
triadic
#2D1676 #762D16 #16762D
tetradic
#2D1676 #76162F #5F7616 #16765D
square
#2D1676 #76162F #5F7616 #16765D
split-complementary
#2D1676 #765D16 #2F7616
monochromatic
#0A051A #190C42 #2D1676 #4120AA #572ED8

Accessibility & contrast

On white

14.11
#2D1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1676
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1676#FFFFFF#000000##FFFFFF
##2D16761.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1676;
/* rgb */ color: rgb(45, 22, 118);
/* oklch */ color: oklch(30.7% 0.150 284.2);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2d1676',
    950: '#000000',
  },
}
SCSS
$custom: #2d1676;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1676",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 254.375,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30697,
    "c": 0.15001,
    "h": 284.2
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#2D1676
secondary
#91AC3C
accent
#EB3CC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1676

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

Preview Lab → · Contrast checker → · Palette generator →

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