#2E1976#2E1976

#2E1976 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.147 H 284.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1976
RGBrgb(46, 25, 118)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 79%, 46%)
CMYKcmyk(61%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.29, 36.27, -49.37)
CIE-LCHlch(18.29, 61.26, 306.30°)
OKLaboklab(31.18% 0.0363 -0.1423)
OKLCHoklch(31.18% 0.147 284.3)
XYZxyz(4.7434, 2.5838, 17.3848)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1976 #617619
analogous
#193376 #2E1976 #5C1976
triadic
#2E1976 #762E19 #19762E
tetradic
#2E1976 #761933 #617619 #19765C
square
#2E1976 #761933 #617619 #19765C
split-complementary
#2E1976 #765C19 #337619
monochromatic
#0A0519 #1A0E43 #2E1976 #4224A8 #5935D4

Accessibility & contrast

On white

13.84
#2E1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1976
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1976#FFFFFF#000000##FFFFFF
##2E19761.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#043346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1976;
/* rgb */ color: rgb(46, 25, 118);
/* oklch */ color: oklch(31.2% 0.147 284.3);
Tailwind
colors: {
  custom: {
    50: '#70599e',
    500: '#2e1976',
    950: '#000000',
  },
}
SCSS
$custom: #2e1976;
$custom-light: #70599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1976",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 253.548,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31178,
    "c": 0.14682,
    "h": 284.3
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#2E1976
secondary
#93AB40
accent
#E840C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1976

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

Preview Lab → · Contrast checker → · Palette generator →

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