#2E1273#2E1273

#2E1273 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.150 H 286.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2E1273
RGBrgb(46, 18, 115)
HSLhsl(257, 73%, 26%)
HSVhsv(257, 84%, 45%)
CMYKcmyk(60%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.75, 38.85, -49.98)
CIE-LCHlch(16.75, 63.30, 307.86°)
OKLaboklab(30.01% 0.0422 -0.1439)
OKLCHoklch(30.01% 0.15 286.3)
XYZxyz(4.4366, 2.2510, 16.4170)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1273 #577312
analogous
#122673 #2E1273 #5E1273
triadic
#2E1273 #732E12 #12732E
tetradic
#2E1273 #731226 #577312 #12735E
square
#2E1273 #731226 #577312 #12735E
split-complementary
#2E1273 #735E12 #267312
monochromatic
#0B041A #190A3E #2E1273 #431AA8 #5823DD

Accessibility & contrast

On white

14.48
#2E1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1273
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1273#FFFFFF#000000##FFFFFF
##2E12731.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#0A2F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1273;
/* rgb */ color: rgb(46, 18, 115);
/* oklch */ color: oklch(30.0% 0.150 286.3);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2e1273',
    950: '#000000',
  },
}
SCSS
$custom: #2e1273;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1273",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 257.32,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30007,
    "c": 0.15001,
    "h": 286.3
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#2E1273
secondary
#89AA37
accent
#F038BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1273

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

Preview Lab → · Contrast checker → · Palette generator →

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