#2E1272#2E1272

#2E1272 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.149 H 286.6°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2E1272
RGBrgb(46, 18, 114)
HSLhsl(258, 73%, 26%)
HSVhsv(258, 84%, 45%)
CMYKcmyk(59.6%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.64, 38.56, -49.52)
CIE-LCHlch(16.64, 62.76, 307.91°)
OKLaboklab(29.9% 0.0426 -0.1426)
OKLCHoklch(29.9% 0.149 286.6)
XYZxyz(4.3794, 2.2281, 16.1156)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1272 #567212
analogous
#122672 #2E1272 #5E1272
triadic
#2E1272 #722E12 #12722E
tetradic
#2E1272 #721226 #567212 #12725E
square
#2E1272 #721226 #567212 #12725E
split-complementary
#2E1272 #725E12 #267212
monochromatic
#0B041A #190A3D #2E1272 #431AA7 #5923DC

Accessibility & contrast

On white

14.53
#2E1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1272
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1272#FFFFFF#000000##FFFFFF
##2E12721.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#0C2F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1272;
/* rgb */ color: rgb(46, 18, 114);
/* oklch */ color: oklch(29.9% 0.149 286.6);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2e1272',
    950: '#000000',
  },
}
SCSS
$custom: #2e1272;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1272",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 257.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.14881,
    "h": 286.6
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2E1272
secondary
#88A937
accent
#EF38BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1272

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

Preview Lab → · Contrast checker → · Palette generator →

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