#2E0F57#2E0F57

#2E0F57 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.119 H 297.0°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2E0F57
RGBrgb(46, 15, 87)
HSLhsl(266, 71%, 20%)
HSVhsv(266, 83%, 34%)
CMYKcmyk(47.1%, 82.8%, 0%, 65.9%)
CIE-LABlab(13.29, 32.05, -37.15)
CIE-LCHlch(13.29, 49.07, 310.79°)
OKLaboklab(26.71% 0.0542 -0.1064)
OKLCHoklch(26.71% 0.119 297)
XYZxyz(3.0174, 1.6105, 9.1669)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F57 #38570F
analogous
#0F1457 #2E0F57 #520F57
triadic
#2E0F57 #572E0F #0F572E
tetradic
#2E0F57 #570F14 #38570F #0F5752
square
#2E0F57 #570F14 #38570F #0F5752
split-complementary
#2E0F57 #57520F #14570F
monochromatic
#0E051A #120623 #2E0F57 #4A188B #6521BF

Accessibility & contrast

On white

15.88
#2E0F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E0F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F57
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F57#FFFFFF#000000##FFFFFF
##2E0F571.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#232232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e0f57;
/* rgb */ color: rgb(46, 15, 87);
/* oklch */ color: oklch(26.7% 0.119 297.0);
Tailwind
colors: {
  custom: {
    50: '#6c5187',
    500: '#2e0f57',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f57;
$custom-light: #6c5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f57",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 265.833,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.26705,
    "c": 0.11936,
    "h": 297
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#2E0F57
secondary
#689131
accent
#ED3AA0
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0F57

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

Preview Lab → · Contrast checker → · Palette generator →

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