#2E1175#2E1175

#2E1175 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.153 H 285.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1175
RGBrgb(46, 17, 117)
HSLhsl(257, 75%, 26%)
HSVhsv(257, 85%, 46%)
CMYKcmyk(60.7%, 85.5%, 0%, 54.1%)
CIE-LABlab(16.82, 39.89, -51.15)
CIE-LCHlch(16.82, 64.87, 307.95°)
OKLaboklab(30.12% 0.0421 -0.1474)
OKLCHoklch(30.12% 0.153 285.9)
XYZxyz(4.5371, 2.2658, 17.0244)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1175 #587511
analogous
#112675 #2E1175 #601175
triadic
#2E1175 #752E11 #11752E
tetradic
#2E1175 #751126 #587511 #117560
square
#2E1175 #751126 #587511 #117560
split-complementary
#2E1175 #756011 #267511
monochromatic
#0B041B #190940 #2E1175 #4319AA #5822DF

Accessibility & contrast

On white

14.45
#2E1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1175
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1175#FFFFFF#000000##FFFFFF
##2E11751.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#073044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1175;
/* rgb */ color: rgb(46, 17, 117);
/* oklch */ color: oklch(30.1% 0.153 285.9);
Tailwind
colors: {
  custom: {
    50: '#71549e',
    500: '#2e1175',
    950: '#000000',
  },
}
SCSS
$custom: #2e1175;
$custom-light: #71549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1175",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 257.4,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30123,
    "c": 0.15325,
    "h": 285.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2E1175
secondary
#8AAC36
accent
#F137BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2E1175

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

Preview Lab → · Contrast checker → · Palette generator →

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