#2E1276#2E1276

#2E1276 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.154 H 285.5°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1276
RGBrgb(46, 18, 118)
HSLhsl(257, 74%, 27%)
HSVhsv(257, 85%, 46%)
CMYKcmyk(61%, 84.7%, 0%, 53.7%)
CIE-LABlab(17.09, 39.74, -51.36)
CIE-LCHlch(17.09, 64.94, 307.73°)
OKLaboklab(30.34% 0.0411 -0.148)
OKLCHoklch(30.34% 0.154 285.5)
XYZxyz(4.6120, 2.3212, 17.3410)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1276 #5A7612
analogous
#122876 #2E1276 #601276
triadic
#2E1276 #762E12 #12762E
tetradic
#2E1276 #761228 #5A7612 #127660
square
#2E1276 #761228 #5A7612 #127660
split-complementary
#2E1276 #766012 #287612
monochromatic
#0A041B #190A41 #2E1276 #431AAB #5925DE

Accessibility & contrast

On white

14.34
#2E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1276
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1276#FFFFFF#000000##FFFFFF
##2E12761.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#053145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1276;
/* rgb */ color: rgb(46, 18, 118);
/* oklch */ color: oklch(30.3% 0.154 285.5);
Tailwind
colors: {
  custom: {
    50: '#71559f',
    500: '#2e1276',
    950: '#000000',
  },
}
SCSS
$custom: #2e1276;
$custom-light: #71559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1276",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 256.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3034,
    "c": 0.15357,
    "h": 285.5
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#2E1276
secondary
#8CAD37
accent
#F038BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2E1276

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

Preview Lab → · Contrast checker → · Palette generator →

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