#2E1957#2E1957

#2E1957 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.106 H 294.1°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1957
RGBrgb(46, 25, 87)
HSLhsl(260, 55%, 22%)
HSVhsv(260, 71%, 34%)
CMYKcmyk(47.1%, 71.3%, 0%, 65.9%)
CIE-LABlab(15.30, 26.45, -33.88)
CIE-LCHlch(15.30, 42.98, 307.98°)
OKLaboklab(28.13% 0.0433 -0.0968)
OKLCHoklch(28.13% 0.106 294.1)
XYZxyz(3.1942, 1.9641, 9.2258)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1957 #425719
analogous
#192357 #2E1957 #4D1957
triadic
#2E1957 #572E19 #19572E
tetradic
#2E1957 #571923 #425719 #19574D
square
#2E1957 #571923 #425719 #19574D
split-complementary
#2E1957 #574D19 #235719
monochromatic
#0D0718 #150B27 #2E1957 #472787 #6034B6

Accessibility & contrast

On white

15.08
#2E1957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1957
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1957#FFFFFF#000000##FFFFFF
##2E19571.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#232835
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1957;
/* rgb */ color: rgb(46, 25, 87);
/* oklch */ color: oklch(28.1% 0.106 294.1);
Tailwind
colors: {
  custom: {
    50: '#6b5787',
    500: '#2e1957',
    950: '#000000',
  },
}
SCSS
$custom: #2e1957;
$custom-light: #6b5787;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1957",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 260.323,
    "s": 55.357,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28129,
    "c": 0.10606,
    "h": 294.1
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#2E1957
secondary
#738D3E
accent
#DF49AC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1957

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

Preview Lab → · Contrast checker → · Palette generator →

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