#2E1973#2E1973

#2E1973 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.143 H 285.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1973
RGBrgb(46, 25, 115)
HSLhsl(254, 64%, 27%)
HSVhsv(254, 78%, 45%)
CMYKcmyk(60%, 78.3%, 0%, 54.9%)
CIE-LABlab(17.98, 35.32, -47.96)
CIE-LCHlch(17.98, 59.56, 306.37°)
OKLaboklab(30.86% 0.0372 -0.1381)
OKLCHoklch(30.86% 0.143 285.1)
XYZxyz(4.5679, 2.5136, 16.4608)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1973 #5E7319
analogous
#193173 #2E1973 #5B1973
triadic
#2E1973 #732E19 #19732E
tetradic
#2E1973 #731931 #5E7319 #19735B
square
#2E1973 #731931 #5E7319 #19735B
split-complementary
#2E1973 #735B19 #317319
monochromatic
#0A0519 #1A0E41 #2E1973 #4224A5 #5934D3

Accessibility & contrast

On white

13.97
#2E1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1973
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1973#FFFFFF#000000##FFFFFF
##2E19731.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#0A3245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1973;
/* rgb */ color: rgb(46, 25, 115);
/* oklch */ color: oklch(30.9% 0.143 285.1);
Tailwind
colors: {
  custom: {
    50: '#70589c',
    500: '#2e1973',
    950: '#000000',
  },
}
SCSS
$custom: #2e1973;
$custom-light: #70589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1973",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 254,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.14303,
    "h": 285.1
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#2E1973
secondary
#90A840
accent
#E741C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1973

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

Preview Lab → · Contrast checker → · Palette generator →

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