#2E045F#2E045F

#2E045F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.5% C 0.139 H 295.3°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2E045F
RGBrgb(46, 4, 95)
HSLhsl(268, 92%, 19%)
HSVhsv(268, 96%, 37%)
CMYKcmyk(51.6%, 95.8%, 0%, 62.7%)
CIE-LABlab(12.57, 38.90, -43.73)
CIE-LCHlch(12.57, 58.53, 311.65°)
OKLaboklab(26.47% 0.0594 -0.1255)
OKLCHoklch(26.47% 0.139 295.3)
XYZxyz(3.2351, 1.4938, 10.9421)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E045F #355F04
analogous
#04085F #2E045F #5C045F
triadic
#2E045F #5F2E04 #045F2E
tetradic
#2E045F #5F0408 #355F04 #045F5C
square
#2E045F #5F0408 #355F04 #045F5C
split-complementary
#2E045F #5F5C04 #085F04
monochromatic
#0E011D #120224 #2E045F #4A069A #6709D4

Accessibility & contrast

On white

16.17
#2E045F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E045F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E045F
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E045F#FFFFFF#000000##FFFFFF
##2E045F1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#1F2235
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e045f;
/* rgb */ color: rgb(46, 4, 95);
/* oklch */ color: oklch(26.5% 0.139 295.3);
Tailwind
colors: {
  custom: {
    50: '#6e4d8d',
    500: '#2e045f',
    950: '#000000',
  },
}
SCSS
$custom: #2e045f;
$custom-light: #6e4d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e045f",
  "rgb": {
    "r": 46,
    "g": 4,
    "b": 95
  },
  "hsl": {
    "h": 267.692,
    "s": 91.919,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26465,
    "c": 0.13885,
    "h": 295.3
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#2E045F
secondary
#649D22
accent
#FF299C
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2E045F

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

Preview Lab → · Contrast checker → · Palette generator →

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