#2E0959#2E0959

#2E0959 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.128 H 297.2°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2E0959
RGBrgb(46, 9, 89)
HSLhsl(268, 82%, 19%)
HSVhsv(268, 90%, 35%)
CMYKcmyk(48.3%, 89.9%, 0%, 65.1%)
CIE-LABlab(12.59, 35.25, -39.65)
CIE-LCHlch(12.59, 53.06, 311.63°)
OKLaboklab(26.28% 0.0584 -0.1137)
OKLCHoklch(26.28% 0.128 297.2)
XYZxyz(3.0271, 1.4974, 9.5788)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0959 #345909
analogous
#090C59 #2E0959 #560959
triadic
#2E0959 #592E09 #09592E
tetradic
#2E0959 #59090C #345909 #095956
square
#2E0959 #59090C #345909 #095956
split-complementary
#2E0959 #595609 #0C5909
monochromatic
#0E031C #110321 #2E0959 #4B0F91 #6714C8

Accessibility & contrast

On white

16.16
#2E0959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E0959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0959
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0959#FFFFFF#000000##FFFFFF
##2E09591.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215B
Deuteranopia (green-blind)
#002058
Tritanopia (blue-blind)
#222132
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e0959;
/* rgb */ color: rgb(46, 9, 89);
/* oklch */ color: oklch(26.3% 0.128 297.2);
Tailwind
colors: {
  custom: {
    50: '#6d4f89',
    500: '#2e0959',
    950: '#000000',
  },
}
SCSS
$custom: #2e0959;
$custom-light: #6d4f89;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0959",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 89
  },
  "hsl": {
    "h": 267.75,
    "s": 81.633,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2628,
    "c": 0.12779,
    "h": 297.2
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#2E0959
secondary
#639529
accent
#F8309B
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0959

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

Preview Lab → · Contrast checker → · Palette generator →

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