#2E1362#2E1362

#2E1362 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.128 H 291.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1362
RGBrgb(46, 19, 98)
HSLhsl(261, 68%, 23%)
HSVhsv(261, 81%, 38%)
CMYKcmyk(53.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(15.11, 33.27, -41.55)
CIE-LCHlch(15.11, 53.23, 308.68°)
OKLaboklab(28.31% 0.0471 -0.1193)
OKLCHoklch(28.31% 0.128 291.5)
XYZxyz(3.5636, 1.9283, 11.7373)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1362 #476213
analogous
#132062 #2E1362 #551362
triadic
#2E1362 #622E13 #13622E
tetradic
#2E1362 #621320 #476213 #136255
square
#2E1362 #621320 #476213 #136255
split-complementary
#2E1362 #625513 #206213
monochromatic
#0C051A #16092F #2E1362 #461D95 #5E27C9

Accessibility & contrast

On white

15.16
#2E1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1362
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1362#FFFFFF#000000##FFFFFF
##2E13621.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#1D293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1362;
/* rgb */ color: rgb(46, 19, 98);
/* oklch */ color: oklch(28.3% 0.128 291.5);
Tailwind
colors: {
  custom: {
    50: '#6d548f',
    500: '#2e1362',
    950: '#000000',
  },
}
SCSS
$custom: #2e1362;
$custom-light: #6d548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1362",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 260.506,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28313,
    "c": 0.12829,
    "h": 291.5
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#2E1362
secondary
#789A37
accent
#EA3DAF
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2E1362

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

Preview Lab → · Contrast checker → · Palette generator →

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