#2E1974#2E1974

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

Color values

HEX#2E1974
RGBrgb(46, 25, 116)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 78%, 45%)
CMYKcmyk(60.3%, 78.4%, 0%, 54.5%)
CIE-LABlab(18.08, 35.64, -48.43)
CIE-LCHlch(18.08, 60.13, 306.35°)
OKLaboklab(30.97% 0.0369 -0.1395)
OKLCHoklch(30.97% 0.144 284.8)
XYZxyz(4.6258, 2.5368, 16.7655)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1974 #5F7419
analogous
#193274 #2E1974 #5B1974
triadic
#2E1974 #742E19 #19742E
tetradic
#2E1974 #741932 #5F7419 #19745B
square
#2E1974 #741932 #5F7419 #19745B
split-complementary
#2E1974 #745B19 #327419
monochromatic
#0A0519 #1A0E42 #2E1974 #4224A6 #5934D3

Accessibility & contrast

On white

13.93
#2E1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1974
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1974#FFFFFF#000000##FFFFFF
##2E19741.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#083345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1974;
/* rgb */ color: rgb(46, 25, 116);
/* oklch */ color: oklch(31.0% 0.144 284.8);
Tailwind
colors: {
  custom: {
    50: '#70589d',
    500: '#2e1974',
    950: '#000000',
  },
}
SCSS
$custom: #2e1974;
$custom-light: #70589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1974",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 253.846,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30967,
    "c": 0.1443,
    "h": 284.8
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#2E1974
secondary
#91A940
accent
#E840C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1974

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

Preview Lab → · Contrast checker → · Palette generator →

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