#2E0945#2E0945

#2E0945 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.105 H 308.3°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#2E0945
RGBrgb(46, 9, 69)
HSLhsl(277, 77%, 15%)
HSVhsv(277, 87%, 27%)
CMYKcmyk(33.3%, 87%, 0%, 72.9%)
CIE-LABlab(10.60, 29.93, -29.13)
CIE-LCHlch(10.60, 41.77, 315.77°)
OKLaboklab(24.29% 0.0653 -0.0828)
OKLCHoklch(24.29% 0.105 308.3)
XYZxyz(2.2984, 1.2059, 5.7408)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0945 #204509
analogous
#100945 #2E0945 #45093E
triadic
#2E0945 #452E09 #09452E
tetradic
#2E0945 #451009 #204509 #093E45
square
#2E0945 #451009 #204509 #093E45
split-complementary
#2E0945 #3E4509 #094510
monochromatic
#12041B #12041B #2E0945 #52107B #7617B1

Accessibility & contrast

On white

16.92
#2E0945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2E0945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0945
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0945#FFFFFF#000000##FFFFFF
##2E09451.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#2A1827
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e0945;
/* rgb */ color: rgb(46, 9, 69);
/* oklch */ color: oklch(24.3% 0.105 308.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d79',
    500: '#2e0945',
    950: '#000000',
  },
}
SCSS
$custom: #2e0945;
$custom-light: #6a4d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0945",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 277,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24285,
    "c": 0.10543,
    "h": 308.3
  },
  "luminance": 0.01206
}

Semantic roles & 50–950 ramp

primary
#2E0945
secondary
#4A8327
accent
#F3347E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0945

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

Preview Lab → · Contrast checker → · Palette generator →

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