#2E0742#2E0742

#2E0742 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.105 H 310.7°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2E0742
RGBrgb(46, 7, 66)
HSLhsl(280, 81%, 14%)
HSVhsv(280, 89%, 26%)
CMYKcmyk(30.3%, 89.4%, 0%, 74.1%)
CIE-LABlab(10.00, 30.11, -27.99)
CIE-LCHlch(10.00, 41.11, 317.09°)
OKLaboklab(23.78% 0.0683 -0.0794)
OKLCHoklch(23.78% 0.105 310.7)
XYZxyz(2.1859, 1.1262, 5.2554)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0742 #1B4207
analogous
#110742 #2E0742 #420739
triadic
#2E0742 #422E07 #07422E
tetradic
#2E0742 #421107 #1B4207 #073942
square
#2E0742 #421107 #1B4207 #073942
split-complementary
#2E0742 #394207 #074211
monochromatic
#13031C #13031C #2E0742 #550D79 #7B13B1

Accessibility & contrast

On white

17.14
#2E0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0742
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0742#FFFFFF#000000##FFFFFF
##2E07421.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#2B1625
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0742;
/* rgb */ color: rgb(46, 7, 66);
/* oklch */ color: oklch(23.8% 0.105 310.7);
Tailwind
colors: {
  custom: {
    50: '#6a4c77',
    500: '#2e0742',
    950: '#000000',
  },
}
SCSS
$custom: #2e0742;
$custom-light: #6a4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0742",
  "rgb": {
    "r": 46,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 279.661,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2378,
    "c": 0.10473,
    "h": 310.7
  },
  "luminance": 0.01126
}

Semantic roles & 50–950 ramp

primary
#2E0742
secondary
#438124
accent
#F73174
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0742

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

Preview Lab → · Contrast checker → · Palette generator →

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