#2E1966#2E1966

#2E1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.126 H 288.7°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1966
RGBrgb(46, 25, 102)
HSLhsl(256, 61%, 25%)
HSVhsv(256, 75%, 40%)
CMYKcmyk(54.9%, 75.5%, 0%, 60%)
CIE-LABlab(16.68, 31.20, -41.62)
CIE-LCHlch(16.68, 52.02, 306.85°)
OKLaboklab(29.54% 0.0405 -0.1196)
OKLCHoklch(29.54% 0.126 288.7)
XYZxyz(3.8719, 2.2352, 12.7952)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1966 #516619
analogous
#192A66 #2E1966 #551966
triadic
#2E1966 #662E19 #19662E
tetradic
#2E1966 #66192A #516619 #196655
square
#2E1966 #66192A #516619 #196655
split-complementary
#2E1966 #665519 #2A6619
monochromatic
#0B0619 #180D35 #2E1966 #442597 #5A31C8

Accessibility & contrast

On white

14.51
#2E1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1966
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1966#FFFFFF#000000##FFFFFF
##2E19661.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#192D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1966;
/* rgb */ color: rgb(46, 25, 102);
/* oklch */ color: oklch(29.5% 0.126 288.7);
Tailwind
colors: {
  custom: {
    50: '#6d5892',
    500: '#2e1966',
    950: '#000000',
  },
}
SCSS
$custom: #2e1966;
$custom-light: #6d5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1966",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 256.364,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29543,
    "c": 0.12623,
    "h": 288.7
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#2E1966
secondary
#839C3F
accent
#E444B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1966

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

Preview Lab → · Contrast checker → · Palette generator →

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