#2E1959#2E1959

#2E1959 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.109 H 293.3°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1959
RGBrgb(46, 25, 89)
HSLhsl(260, 56%, 22%)
HSVhsv(260, 72%, 35%)
CMYKcmyk(48.3%, 71.9%, 0%, 65.1%)
CIE-LABlab(15.47, 27.08, -34.94)
CIE-LCHlch(15.47, 44.21, 307.77°)
OKLaboklab(28.31% 0.043 -0.0999)
OKLCHoklch(28.31% 0.109 293.3)
XYZxyz(3.2770, 1.9973, 9.6621)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1959 #445919
analogous
#192459 #2E1959 #4E1959
triadic
#2E1959 #592E19 #19592E
tetradic
#2E1959 #591924 #445919 #19594E
square
#2E1959 #591924 #445919 #19594E
split-complementary
#2E1959 #594E19 #245919
monochromatic
#0C0718 #150C29 #2E1959 #472689 #5F34B9

Accessibility & contrast

On white

15.01
#2E1959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1959
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1959#FFFFFF#000000##FFFFFF
##2E19591.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#222836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1959;
/* rgb */ color: rgb(46, 25, 89);
/* oklch */ color: oklch(28.3% 0.109 293.3);
Tailwind
colors: {
  custom: {
    50: '#6b5788',
    500: '#2e1959',
    950: '#000000',
  },
}
SCSS
$custom: #2e1959;
$custom-light: #6b5788;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1959",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 259.688,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2831,
    "c": 0.1088,
    "h": 293.3
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#2E1959
secondary
#758F3E
accent
#DF48AE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1959

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

Preview Lab → · Contrast checker → · Palette generator →

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