#2E1967#2E1967

#2E1967 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.6% C 0.128 H 288.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1967
RGBrgb(46, 25, 103)
HSLhsl(256, 61%, 25%)
HSVhsv(256, 76%, 40%)
CMYKcmyk(55.3%, 75.7%, 0%, 59.6%)
CIE-LABlab(16.77, 31.51, -42.12)
CIE-LCHlch(16.77, 52.61, 306.80°)
OKLaboklab(29.64% 0.0402 -0.121)
OKLCHoklch(29.64% 0.128 288.4)
XYZxyz(3.9218, 2.2552, 13.0580)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1967 #526719
analogous
#192B67 #2E1967 #551967
triadic
#2E1967 #672E19 #19672E
tetradic
#2E1967 #67192B #526719 #196755
square
#2E1967 #67192B #526719 #196755
split-complementary
#2E1967 #675519 #2B6719
monochromatic
#0B0619 #180D36 #2E1967 #442598 #5A31C9

Accessibility & contrast

On white

14.47
#2E1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1967
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1967#FFFFFF#000000##FFFFFF
##2E19671.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#182E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1967;
/* rgb */ color: rgb(46, 25, 103);
/* oklch */ color: oklch(29.6% 0.128 288.4);
Tailwind
colors: {
  custom: {
    50: '#6e5893',
    500: '#2e1967',
    950: '#000000',
  },
}
SCSS
$custom: #2e1967;
$custom-light: #6e5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1967",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 256.154,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29642,
    "c": 0.12754,
    "h": 288.4
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#2E1967
secondary
#849D3F
accent
#E444B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1967

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

Preview Lab → · Contrast checker → · Palette generator →

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