#2E1960#2E1960

#2E1960 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.118 H 290.7°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1960
RGBrgb(46, 25, 96)
HSLhsl(258, 59%, 24%)
HSVhsv(258, 74%, 38%)
CMYKcmyk(52.1%, 74%, 0%, 62.4%)
CIE-LABlab(16.11, 29.29, -38.59)
CIE-LCHlch(16.11, 48.44, 307.20°)
OKLaboklab(28.96% 0.0417 -0.1106)
OKLCHoklch(28.96% 0.118 290.7)
XYZxyz(3.5851, 2.1205, 11.2845)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1960 #4B6019
analogous
#192760 #2E1960 #511960
triadic
#2E1960 #602E19 #19602E
tetradic
#2E1960 #601927 #4B6019 #196051
square
#2E1960 #601927 #4B6019 #196051
split-complementary
#2E1960 #605119 #276019
monochromatic
#0C0618 #170C2F #2E1960 #452691 #5D32C1

Accessibility & contrast

On white

14.75
#2E1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1960
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1960#FFFFFF#000000##FFFFFF
##2E19601.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#1E2B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1960;
/* rgb */ color: rgb(46, 25, 96);
/* oklch */ color: oklch(29.0% 0.118 290.7);
Tailwind
colors: {
  custom: {
    50: '#6c578e',
    500: '#2e1960',
    950: '#000000',
  },
}
SCSS
$custom: #2e1960;
$custom-light: #6c578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1960",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 257.746,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28962,
    "c": 0.11826,
    "h": 290.7
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#2E1960
secondary
#7C963F
accent
#E246B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1960

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

Preview Lab → · Contrast checker → · Palette generator →

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