#2E2164#2E2164

#2E2164 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.113 H 286.7°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2E2164
RGBrgb(46, 33, 100)
HSLhsl(252, 50%, 26%)
HSVhsv(252, 67%, 39%)
CMYKcmyk(54%, 67%, 0%, 60.8%)
CIE-LABlab(18.31, 25.58, -37.64)
CIE-LCHlch(18.31, 45.50, 304.20°)
OKLaboklab(30.67% 0.0323 -0.1079)
OKLCHoklch(30.67% 0.113 286.7)
XYZxyz(3.9701, 2.5885, 12.3446)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2164 #576421
analogous
#213564 #2E2164 #4F2164
triadic
#2E2164 #642E21 #21642E
tetradic
#2E2164 #642135 #576421 #21644F
square
#2E2164 #642135 #576421 #21644F
split-complementary
#2E2164 #644F21 #356421
monochromatic
#0B0817 #191236 #2E2164 #433092 #5840C0

Accessibility & contrast

On white

13.84
#2E2164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E2164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2164
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2164#FFFFFF#000000##FFFFFF
##2E21641.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#1A313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2164;
/* rgb */ color: rgb(46, 33, 100);
/* oklch */ color: oklch(30.7% 0.113 286.7);
Tailwind
colors: {
  custom: {
    50: '#6c5d91',
    500: '#2e2164',
    950: '#000000',
  },
}
SCSS
$custom: #2e2164;
$custom-light: #6c5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2164",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 251.642,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30665,
    "c": 0.11259,
    "h": 286.7
  },
  "luminance": 0.02589
}

Semantic roles & 50–950 ramp

primary
#2E2164
secondary
#899849
accent
#DA4EBF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2E2164

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

Preview Lab → · Contrast checker → · Palette generator →

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