#2E1259#2E1259

#2E1259 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.118 H 295.4°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2E1259
RGBrgb(46, 18, 89)
HSLhsl(264, 66%, 21%)
HSVhsv(264, 80%, 35%)
CMYKcmyk(48.3%, 79.8%, 0%, 65.1%)
CIE-LABlab(14.03, 31.10, -37.30)
CIE-LCHlch(14.03, 48.57, 309.82°)
OKLaboklab(27.28% 0.0507 -0.1068)
OKLCHoklch(27.28% 0.118 295.4)
XYZxyz(3.1457, 1.7346, 9.6183)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1259 #3D5912
analogous
#121959 #2E1259 #511259
triadic
#2E1259 #592E12 #12592E
tetradic
#2E1259 #591219 #3D5912 #125951
square
#2E1259 #591219 #3D5912 #125951
split-complementary
#2E1259 #595112 #195912
monochromatic
#0D0519 #140826 #2E1259 #481C8C #6327BF

Accessibility & contrast

On white

15.59
#2E1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1259
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1259#FFFFFF#000000##FFFFFF
##2E12591.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#222534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1259;
/* rgb */ color: rgb(46, 18, 89);
/* oklch */ color: oklch(27.3% 0.118 295.4);
Tailwind
colors: {
  custom: {
    50: '#6c5389',
    500: '#2e1259',
    950: '#000000',
  },
}
SCSS
$custom: #2e1259;
$custom-light: #6c5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1259",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 263.662,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27281,
    "c": 0.11824,
    "h": 295.4
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#2E1259
secondary
#6D9235
accent
#E93FA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1259

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

Preview Lab → · Contrast checker → · Palette generator →

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