#2E0A48#2E0A48

#2E0A48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.108 H 306.1°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2E0A48
RGBrgb(46, 10, 72)
HSLhsl(275, 76%, 16%)
HSVhsv(275, 86%, 28%)
CMYKcmyk(36.1%, 86.1%, 0%, 71.8%)
CIE-LABlab(11.03, 30.26, -30.53)
CIE-LCHlch(11.03, 42.98, 314.74°)
OKLaboklab(24.68% 0.0635 -0.0869)
OKLCHoklch(24.68% 0.108 306.1)
XYZxyz(2.4047, 1.2658, 6.2473)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0A48 #24480A
analogous
#0F0A48 #2E0A48 #480A43
triadic
#2E0A48 #482E0A #0A482E
tetradic
#2E0A48 #480F0A #24480A #0A4348
square
#2E0A48 #480F0A #24480A #0A4348
split-complementary
#2E0A48 #43480A #0A480F
monochromatic
#11041B #11041B #2E0A48 #50117E #7319B3

Accessibility & contrast

On white

16.76
#2E0A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2E0A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0A48
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0A48#FFFFFF#000000##FFFFFF
##2E0A481.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#291A29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e0a48;
/* rgb */ color: rgb(46, 10, 72);
/* oklch */ color: oklch(24.7% 0.108 306.1);
Tailwind
colors: {
  custom: {
    50: '#6a4e7b',
    500: '#2e0a48',
    950: '#000000',
  },
}
SCSS
$custom: #2e0a48;
$custom-light: #6a4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0a48",
  "rgb": {
    "r": 46,
    "g": 10,
    "b": 72
  },
  "hsl": {
    "h": 274.839,
    "s": 75.61,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24675,
    "c": 0.10758,
    "h": 306.1
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#2E0A48
secondary
#4F8529
accent
#F23685
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E0A48

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

Preview Lab → · Contrast checker → · Palette generator →

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