#2E0B4E#2E0B4E

#2E0B4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.113 H 302.4°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2E0B4E
RGBrgb(46, 11, 78)
HSLhsl(271, 75%, 17%)
HSVhsv(271, 86%, 31%)
CMYKcmyk(41%, 85.9%, 0%, 69.4%)
CIE-LABlab(11.76, 31.42, -33.51)
CIE-LCHlch(11.76, 45.94, 313.15°)
OKLaboklab(25.36% 0.0607 -0.0956)
OKLCHoklch(25.36% 0.113 302.4)
XYZxyz(2.6212, 1.3702, 7.3326)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0B4E #2B4E0B
analogous
#0C0B4E #2E0B4E #4E0B4D
triadic
#2E0B4E #4E2E0B #0B4E2E
tetradic
#2E0B4E #4E0C0B #2B4E0B #0B4D4E
square
#2E0B4E #4E0C0B #2B4E0B #0B4D4E
split-complementary
#2E0B4E #4D4E0B #0B4E0C
monochromatic
#10041B #10041B #2E0B4E #4E1384 #6D1AB9

Accessibility & contrast

On white

16.48
#2E0B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E0B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0B4E
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0B4E#FFFFFF#000000##FFFFFF
##2E0B4E1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#271D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0b4e;
/* rgb */ color: rgb(46, 11, 78);
/* oklch */ color: oklch(25.4% 0.113 302.4);
Tailwind
colors: {
  custom: {
    50: '#6b4f80',
    500: '#2e0b4e',
    950: '#000000',
  },
}
SCSS
$custom: #2e0b4e;
$custom-light: #6b4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0b4e",
  "rgb": {
    "r": 46,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 271.343,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25359,
    "c": 0.1133,
    "h": 302.4
  },
  "luminance": 0.0137
}

Semantic roles & 50–950 ramp

primary
#2E0B4E
secondary
#588A2B
accent
#F23690
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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