#2E0F5F#2E0F5F

#2E0F5F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.129 H 293.5°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2E0F5F
RGBrgb(46, 15, 95)
HSLhsl(263, 73%, 22%)
HSVhsv(263, 84%, 37%)
CMYKcmyk(51.6%, 84.2%, 0%, 62.7%)
CIE-LABlab(14.11, 34.36, -41.19)
CIE-LCHlch(14.11, 53.64, 309.83°)
OKLaboklab(27.52% 0.0515 -0.1182)
OKLCHoklch(27.52% 0.129 293.5)
XYZxyz(3.3625, 1.7486, 10.9846)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F5F #405F0F
analogous
#0F185F #2E0F5F #560F5F
triadic
#2E0F5F #5F2E0F #0F5F2E
tetradic
#2E0F5F #5F0F18 #405F0F #0F5F56
square
#2E0F5F #5F0F18 #405F0F #0F5F56
split-complementary
#2E0F5F #5F560F #185F0F
monochromatic
#0D041A #14072A #2E0F5F #481794 #6120C9

Accessibility & contrast

On white

15.56
#2E0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F5F
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F5F#FFFFFF#000000##FFFFFF
##2E0F5F1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#1F2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e0f5f;
/* rgb */ color: rgb(46, 15, 95);
/* oklch */ color: oklch(27.5% 0.129 293.5);
Tailwind
colors: {
  custom: {
    50: '#6d528d',
    500: '#2e0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f5f;
$custom-light: #6d528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f5f",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 263.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27522,
    "c": 0.12897,
    "h": 293.5
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#2E0F5F
secondary
#709832
accent
#EF38A8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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