#2E0F5A#2E0F5A

#2E0F5A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.123 H 295.6°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2E0F5A
RGBrgb(46, 15, 90)
HSLhsl(265, 71%, 21%)
HSVhsv(265, 83%, 35%)
CMYKcmyk(48.9%, 83.3%, 0%, 64.7%)
CIE-LABlab(13.59, 32.91, -38.68)
CIE-LCHlch(13.59, 50.79, 310.39°)
OKLaboklab(27.01% 0.0532 -0.1109)
OKLCHoklch(27.01% 0.123 295.6)
XYZxyz(3.1425, 1.6606, 9.8258)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F5A #3B5A0F
analogous
#0F155A #2E0F5A #530F5A
triadic
#2E0F5A #5A2E0F #0F5A2E
tetradic
#2E0F5A #5A0F15 #3B5A0F #0F5A53
square
#2E0F5A #5A0F15 #3B5A0F #0F5A53
split-complementary
#2E0F5A #5A530F #155A0F
monochromatic
#0D041A #130626 #2E0F5A #49188E #6420C3

Accessibility & contrast

On white

15.76
#2E0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F5A
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F5A#FFFFFF#000000##FFFFFF
##2E0F5A1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#222434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e0f5a;
/* rgb */ color: rgb(46, 15, 90);
/* oklch */ color: oklch(27.0% 0.123 295.6);
Tailwind
colors: {
  custom: {
    50: '#6c5189',
    500: '#2e0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f5a;
$custom-light: #6c5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f5a",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 264.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27008,
    "c": 0.12297,
    "h": 295.6
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#2E0F5A
secondary
#6B9431
accent
#EE3AA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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