#2E1961#2E1961

#2E1961 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.120 H 290.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1961
RGBrgb(46, 25, 97)
HSLhsl(258, 59%, 24%)
HSVhsv(258, 74%, 38%)
CMYKcmyk(52.6%, 74.2%, 0%, 62%)
CIE-LABlab(16.20, 29.61, -39.10)
CIE-LCHlch(16.20, 49.04, 307.13°)
OKLaboklab(29.06% 0.0415 -0.1122)
OKLCHoklch(29.06% 0.12 290.3)
XYZxyz(3.6314, 2.1390, 11.5285)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1961 #4C6119
analogous
#192861 #2E1961 #521961
triadic
#2E1961 #612E19 #19612E
tetradic
#2E1961 #611928 #4C6119 #196152
square
#2E1961 #611928 #4C6119 #196152
split-complementary
#2E1961 #615219 #286119
monochromatic
#0C0618 #170C30 #2E1961 #452692 #5C32C2

Accessibility & contrast

On white

14.71
#2E1961 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1961 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1961
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1961#FFFFFF#000000##FFFFFF
##2E19611.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#1D2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1961;
/* rgb */ color: rgb(46, 25, 97);
/* oklch */ color: oklch(29.1% 0.120 290.3);
Tailwind
colors: {
  custom: {
    50: '#6d578f',
    500: '#2e1961',
    950: '#000000',
  },
}
SCSS
$custom: #2e1961;
$custom-light: #6d578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1961",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 97
  },
  "hsl": {
    "h": 257.5,
    "s": 59.016,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29058,
    "c": 0.11961,
    "h": 290.3
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#2E1961
secondary
#7D973F
accent
#E246B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1961

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

Preview Lab → · Contrast checker → · Palette generator →

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