#2E0548#2E0548

#2E0548 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.114 H 307.1°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2E0548
RGBrgb(46, 5, 72)
HSLhsl(277, 87%, 15%)
HSVhsv(277, 93%, 28%)
CMYKcmyk(36.1%, 93.1%, 0%, 71.8%)
CIE-LABlab(10.24, 32.57, -31.83)
CIE-LCHlch(10.24, 45.54, 315.67°)
OKLaboklab(24.12% 0.0686 -0.0906)
OKLCHoklch(24.12% 0.114 307.1)
XYZxyz(2.3504, 1.1573, 6.2292)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0548 #1F4805
analogous
#0C0548 #2E0548 #480541
triadic
#2E0548 #482E05 #05482E
tetradic
#2E0548 #480C05 #1F4805 #054148
square
#2E0548 #480C05 #1F4805 #054148
split-complementary
#2E0548 #414805 #05480C
monochromatic
#12021D #12021D #2E0548 #530981 #770DBA

Accessibility & contrast

On white

17.05
#2E0548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2E0548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0548
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0548#FFFFFF#000000##FFFFFF
##2E05481.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#291728
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2e0548;
/* rgb */ color: rgb(46, 5, 72);
/* oklch */ color: oklch(24.1% 0.114 307.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b7c',
    500: '#2e0548',
    950: '#000000',
  },
}
SCSS
$custom: #2e0548;
$custom-light: #6b4b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0548",
  "rgb": {
    "r": 46,
    "g": 5,
    "b": 72
  },
  "hsl": {
    "h": 276.716,
    "s": 87.013,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24121,
    "c": 0.11369,
    "h": 307.1
  },
  "luminance": 0.01157
}

Semantic roles & 50–950 ramp

primary
#2E0548
secondary
#498821
accent
#FD2B7C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0548

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

Preview Lab → · Contrast checker → · Palette generator →

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