#2E074E#2E074E

#2E074E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.118 H 303.2°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#2E074E
RGBrgb(46, 7, 78)
HSLhsl(273, 84%, 17%)
HSVhsv(273, 91%, 31%)
CMYKcmyk(41%, 91%, 0%, 69.4%)
CIE-LABlab(11.16, 33.17, -34.50)
CIE-LCHlch(11.16, 47.86, 313.88°)
OKLaboklab(24.94% 0.0644 -0.0985)
OKLCHoklch(24.94% 0.118 303.2)
XYZxyz(2.5775, 1.2829, 7.3181)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E074E #274E07
analogous
#0B074E #2E074E #4E074B
triadic
#2E074E #4E2E07 #074E2E
tetradic
#2E074E #4E0B07 #274E07 #074B4E
square
#2E074E #4E0B07 #274E07 #074B4E
split-complementary
#2E074E #4B4E07 #074E0B
monochromatic
#11031C #11031C #2E074E #4F0C86 #7011BE

Accessibility & contrast

On white

16.71
#2E074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2E074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E074E
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E074E#FFFFFF#000000##FFFFFF
##2E074E1.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#271B2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e074e;
/* rgb */ color: rgb(46, 7, 78);
/* oklch */ color: oklch(24.9% 0.118 303.2);
Tailwind
colors: {
  custom: {
    50: '#6b4d80',
    500: '#2e074e',
    950: '#000000',
  },
}
SCSS
$custom: #2e074e;
$custom-light: #6b4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e074e",
  "rgb": {
    "r": 46,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 272.958,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2494,
    "c": 0.11769,
    "h": 303.2
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#2E074E
secondary
#538C25
accent
#FA2E8A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07010A
muted
#7A777C

Preview Lab

Preview with #2E074E

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

Preview Lab → · Contrast checker → · Palette generator →

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