#2E0B4B#2E0B4B

#2E0B4B is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.110 H 304.1°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2E0B4B
RGBrgb(46, 11, 75)
HSLhsl(273, 74%, 17%)
HSVhsv(273, 85%, 29%)
CMYKcmyk(38.7%, 85.3%, 0%, 70.6%)
CIE-LABlab(11.47, 30.61, -31.90)
CIE-LCHlch(11.47, 44.21, 313.81°)
OKLaboklab(25.07% 0.0616 -0.0909)
OKLCHoklch(25.07% 0.11 304.1)
XYZxyz(2.5161, 1.3282, 6.7791)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0B4B #284B0B
analogous
#0E0B4B #2E0B4B #4B0B48
triadic
#2E0B4B #4B2E0B #0B4B2E
tetradic
#2E0B4B #4B0E0B #284B0B #0B484B
square
#2E0B4B #4B0E0B #284B0B #0B484B
split-complementary
#2E0B4B #484B0B #0B4B0E
monochromatic
#10041B #10041B #2E0B4B #4F1380 #6F1BB6

Accessibility & contrast

On white

16.59
#2E0B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0B4B
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0B4B#FFFFFF#000000##FFFFFF
##2E0B4B1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#281C2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e0b4b;
/* rgb */ color: rgb(46, 11, 75);
/* oklch */ color: oklch(25.1% 0.110 304.1);
Tailwind
colors: {
  custom: {
    50: '#6a4e7e',
    500: '#2e0b4b',
    950: '#000000',
  },
}
SCSS
$custom: #2e0b4b;
$custom-light: #6a4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0b4b",
  "rgb": {
    "r": 46,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 272.813,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25069,
    "c": 0.10984,
    "h": 304.1
  },
  "luminance": 0.01328
}

Semantic roles & 50–950 ramp

primary
#2E0B4B
secondary
#55872B
accent
#F1378B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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