#2E0B56#2E0B56

#2E0B56 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.122 H 298.3°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2E0B56
RGBrgb(46, 11, 86)
HSLhsl(268, 77%, 19%)
HSVhsv(268, 87%, 34%)
CMYKcmyk(46.5%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.56, 33.61, -37.68)
CIE-LCHlch(12.56, 50.49, 311.73°)
OKLaboklab(26.16% 0.058 -0.1079)
OKLCHoklch(26.16% 0.122 298.3)
XYZxyz(2.9257, 1.4920, 8.9361)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0B56 #33560B
analogous
#0B0E56 #2E0B56 #540B56
triadic
#2E0B56 #562E0B #0B562E
tetradic
#2E0B56 #560B0E #33560B #0B5654
square
#2E0B56 #560B0E #33560B #0B5654
split-complementary
#2E0B56 #56540B #0E560B
monochromatic
#0F031B #110420 #2E0B56 #4B128C #6819C3

Accessibility & contrast

On white

16.17
#2E0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0B56
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0B56#FFFFFF#000000##FFFFFF
##2E0B561.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#242031
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e0b56;
/* rgb */ color: rgb(46, 11, 86);
/* oklch */ color: oklch(26.2% 0.122 298.3);
Tailwind
colors: {
  custom: {
    50: '#6c4f86',
    500: '#2e0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2e0b56;
$custom-light: #6c4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0b56",
  "rgb": {
    "r": 46,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 268,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26161,
    "c": 0.12249,
    "h": 298.3
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#2E0B56
secondary
#62912B
accent
#F4349A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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