#2E0948#2E0948

#2E0948 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.6% C 0.109 H 306.3°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2E0948
RGBrgb(46, 9, 72)
HSLhsl(275, 78%, 16%)
HSVhsv(275, 88%, 28%)
CMYKcmyk(36.1%, 87.5%, 0%, 71.8%)
CIE-LABlab(10.88, 30.70, -30.78)
CIE-LCHlch(10.88, 43.48, 314.93°)
OKLaboklab(24.57% 0.0645 -0.0876)
OKLCHoklch(24.57% 0.109 306.3)
XYZxyz(2.3938, 1.2441, 6.2437)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0948 #234809
analogous
#0E0948 #2E0948 #480942
triadic
#2E0948 #482E09 #09482E
tetradic
#2E0948 #480E09 #234809 #094248
square
#2E0948 #480E09 #234809 #094248
split-complementary
#2E0948 #424809 #09480E
monochromatic
#11031B #11031B #2E0948 #51107E #7417B5

Accessibility & contrast

On white

16.82
#2E0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0948
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0948#FFFFFF#000000##FFFFFF
##2E09481.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#291929
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e0948;
/* rgb */ color: rgb(46, 9, 72);
/* oklch */ color: oklch(24.6% 0.109 306.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d7b',
    500: '#2e0948',
    950: '#000000',
  },
}
SCSS
$custom: #2e0948;
$custom-light: #6a4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0948",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 275.238,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24567,
    "c": 0.10878,
    "h": 306.3
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#2E0948
secondary
#4E8527
accent
#F43483
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0948

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

Preview Lab → · Contrast checker → · Palette generator →

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