#2E0B4D#2E0B4D

#2E0B4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.112 H 303.0°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2E0B4D
RGBrgb(46, 11, 77)
HSLhsl(272, 75%, 17%)
HSVhsv(272, 86%, 30%)
CMYKcmyk(40.3%, 85.7%, 0%, 69.8%)
CIE-LABlab(11.66, 31.14, -32.98)
CIE-LCHlch(11.66, 45.36, 313.36°)
OKLaboklab(25.26% 0.061 -0.0941)
OKLCHoklch(25.26% 0.112 303)
XYZxyz(2.5856, 1.3560, 7.1453)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0B4D #2A4D0B
analogous
#0D0B4D #2E0B4D #4D0B4B
triadic
#2E0B4D #4D2E0B #0B4D2E
tetradic
#2E0B4D #4D0D0B #2A4D0B #0B4B4D
square
#2E0B4D #4D0D0B #2A4D0B #0B4B4D
split-complementary
#2E0B4D #4B4D0B #0B4D0D
monochromatic
#10041B #10041B #2E0B4D #4E1383 #6E1AB8

Accessibility & contrast

On white

16.52
#2E0B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0B4D
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0B4D#FFFFFF#000000##FFFFFF
##2E0B4D1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#281C2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0b4d;
/* rgb */ color: rgb(46, 11, 77);
/* oklch */ color: oklch(25.3% 0.112 303.0);
Tailwind
colors: {
  custom: {
    50: '#6b4f7f',
    500: '#2e0b4d',
    950: '#000000',
  },
}
SCSS
$custom: #2e0b4d;
$custom-light: #6b4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0b4d",
  "rgb": {
    "r": 46,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 271.818,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25262,
    "c": 0.11214,
    "h": 303
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#2E0B4D
secondary
#57892B
accent
#F2368E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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