#2E1975#2E1975

#2E1975 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.146 H 284.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1975
RGBrgb(46, 25, 117)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 79%, 46%)
CMYKcmyk(60.7%, 78.6%, 0%, 54.1%)
CIE-LABlab(18.19, 35.95, -48.90)
CIE-LCHlch(18.19, 60.70, 306.32°)
OKLaboklab(31.07% 0.0366 -0.1409)
OKLCHoklch(31.07% 0.146 284.6)
XYZxyz(4.6842, 2.5602, 17.0735)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1975 #607519
analogous
#193275 #2E1975 #5C1975
triadic
#2E1975 #752E19 #19752E
tetradic
#2E1975 #751932 #607519 #19755C
square
#2E1975 #751932 #607519 #19755C
split-complementary
#2E1975 #755C19 #327519
monochromatic
#0A0519 #1A0E43 #2E1975 #4224A7 #5935D4

Accessibility & contrast

On white

13.89
#2E1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1975
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1975#FFFFFF#000000##FFFFFF
##2E19751.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#063346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1975;
/* rgb */ color: rgb(46, 25, 117);
/* oklch */ color: oklch(31.1% 0.146 284.6);
Tailwind
colors: {
  custom: {
    50: '#70589e',
    500: '#2e1975',
    950: '#000000',
  },
}
SCSS
$custom: #2e1975;
$custom-light: #70589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1975",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 253.696,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31072,
    "c": 0.14557,
    "h": 284.6
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#2E1975
secondary
#92AA40
accent
#E840C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1975

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

Preview Lab → · Contrast checker → · Palette generator →

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