#2D1679#2D1679

#2D1679 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.154 H 283.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1679
RGBrgb(45, 22, 121)
HSLhsl(254, 69%, 28%)
HSVhsv(254, 82%, 47%)
CMYKcmyk(62.8%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.97, 38.63, -51.83)
CIE-LCHlch(17.97, 64.64, 306.70°)
OKLaboklab(31.03% 0.0359 -0.1494)
OKLCHoklch(31.03% 0.154 283.5)
XYZxyz(4.8192, 2.5119, 18.3163)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1679 #627916
analogous
#163179 #2D1679 #5E1679
triadic
#2D1679 #792D16 #16792D
tetradic
#2D1679 #791631 #627916 #16795E
square
#2D1679 #791631 #627916 #16795E
split-complementary
#2D1679 #795E16 #317916
monochromatic
#0A051A #1A0D45 #2D1679 #401FAD #5730D9

Accessibility & contrast

On white

13.98
#2D1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1679
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1679#FFFFFF#000000##FFFFFF
##2D16791.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1679;
/* rgb */ color: rgb(45, 22, 121);
/* oklch */ color: oklch(31.0% 0.154 283.5);
Tailwind
colors: {
  custom: {
    50: '#7157a1',
    500: '#2d1679',
    950: '#000000',
  },
}
SCSS
$custom: #2d1679;
$custom-light: #7157a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1679",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 253.939,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31025,
    "c": 0.15369,
    "h": 283.5
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2D1679
secondary
#94AE3D
accent
#EC3CC3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1679

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

Preview Lab → · Contrast checker → · Palette generator →

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