#2E0B4C#2E0B4C

#2E0B4C is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.111 H 303.5°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2E0B4C
RGBrgb(46, 11, 76)
HSLhsl(272, 75%, 17%)
HSVhsv(272, 86%, 30%)
CMYKcmyk(39.5%, 85.5%, 0%, 70.2%)
CIE-LABlab(11.57, 30.87, -32.44)
CIE-LCHlch(11.57, 44.79, 313.58°)
OKLaboklab(25.17% 0.0613 -0.0925)
OKLCHoklch(25.17% 0.111 303.5)
XYZxyz(2.5506, 1.3420, 6.9607)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0B4C #294C0B
analogous
#0E0B4C #2E0B4C #4C0B4A
triadic
#2E0B4C #4C2E0B #0B4C2E
tetradic
#2E0B4C #4C0E0B #294C0B #0B4A4C
square
#2E0B4C #4C0E0B #294C0B #0B4A4C
split-complementary
#2E0B4C #4A4C0B #0B4C0E
monochromatic
#10041B #10041B #2E0B4C #4E1381 #6F1AB7

Accessibility & contrast

On white

16.56
#2E0B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0B4C
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0B4C#FFFFFF#000000##FFFFFF
##2E0B4C1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#281C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0b4c;
/* rgb */ color: rgb(46, 11, 76);
/* oklch */ color: oklch(25.2% 0.111 303.5);
Tailwind
colors: {
  custom: {
    50: '#6b4f7f',
    500: '#2e0b4c',
    950: '#000000',
  },
}
SCSS
$custom: #2e0b4c;
$custom-light: #6b4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0b4c",
  "rgb": {
    "r": 46,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 272.308,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25165,
    "c": 0.11099,
    "h": 303.5
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#2E0B4C
secondary
#56882B
accent
#F1368D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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