#2E1283#2E1283

#2E1283 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.169 H 282.4°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2E1283
RGBrgb(46, 18, 131)
HSLhsl(255, 76%, 29%)
HSVhsv(255, 86%, 51%)
CMYKcmyk(64.9%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.59, 43.57, -57.17)
CIE-LCHlch(18.59, 71.88, 307.31°)
OKLaboklab(31.82% 0.0363 -0.1649)
OKLCHoklch(31.82% 0.169 282.4)
XYZxyz(5.4385, 2.6518, 21.6936)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1283 #678312
analogous
#122F83 #2E1283 #671283
triadic
#2E1283 #832E12 #12832E
tetradic
#2E1283 #83122F #678312 #128367
square
#2E1283 #83122F #678312 #128367
split-complementary
#2E1283 #836712 #2F8312
monochromatic
#09041B #1B0B4D #2E1283 #4119B9 #5A2DE2

Accessibility & contrast

On white

13.72
#2E1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1283
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1283#FFFFFF#000000##FFFFFF
##2E12831.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1283;
/* rgb */ color: rgb(46, 18, 131);
/* oklch */ color: oklch(31.8% 0.169 282.4);
Tailwind
colors: {
  custom: {
    50: '#7456a8',
    500: '#2e1283',
    950: '#000000',
  },
}
SCSS
$custom: #2e1283;
$custom-light: #7456a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1283",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 254.867,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31815,
    "c": 0.16885,
    "h": 282.4
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#2E1283
secondary
#99B838
accent
#F235C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1283

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

Preview Lab → · Contrast checker → · Palette generator →

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