#2E0F5C#2E0F5C

#2E0F5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.125 H 294.8°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2E0F5C
RGBrgb(46, 15, 92)
HSLhsl(264, 72%, 21%)
HSVhsv(264, 84%, 36%)
CMYKcmyk(50%, 83.7%, 0%, 63.9%)
CIE-LABlab(13.80, 33.49, -39.69)
CIE-LCHlch(13.80, 51.94, 310.16°)
OKLaboklab(27.21% 0.0525 -0.1138)
OKLCHoklch(27.21% 0.125 294.8)
XYZxyz(3.2288, 1.6951, 10.2802)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F5C #3D5C0F
analogous
#0F165C #2E0F5C #540F5C
triadic
#2E0F5C #5C2E0F #0F5C2E
tetradic
#2E0F5C #5C0F16 #3D5C0F #0F5C54
square
#2E0F5C #5C0F16 #3D5C0F #0F5C54
split-complementary
#2E0F5C #5C540F #165C0F
monochromatic
#0D041A #140627 #2E0F5C #481891 #6320C5

Accessibility & contrast

On white

15.68
#2E0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F5C
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F5C#FFFFFF#000000##FFFFFF
##2E0F5C1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#202535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e0f5c;
/* rgb */ color: rgb(46, 15, 92);
/* oklch */ color: oklch(27.2% 0.125 294.8);
Tailwind
colors: {
  custom: {
    50: '#6d528b',
    500: '#2e0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f5c;
$custom-light: #6d528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f5c",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 264.156,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27212,
    "c": 0.12537,
    "h": 294.8
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#2E0F5C
secondary
#6D9531
accent
#EF39A6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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