#2E0F54#2E0F54

#2E0F54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.116 H 298.4°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2E0F54
RGBrgb(46, 15, 84)
HSLhsl(267, 70%, 19%)
HSVhsv(267, 82%, 33%)
CMYKcmyk(45.2%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.00, 31.19, -35.59)
CIE-LCHlch(13.00, 47.33, 311.23°)
OKLaboklab(26.41% 0.055 -0.1018)
OKLCHoklch(26.41% 0.116 298.4)
XYZxyz(2.8974, 1.5625, 8.5347)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F54 #35540F
analogous
#0F1254 #2E0F54 #510F54
triadic
#2E0F54 #542E0F #0F542E
tetradic
#2E0F54 #540F12 #35540F #0F5451
square
#2E0F54 #540F12 #35540F #0F5451
split-complementary
#2E0F54 #54510F #12540F
monochromatic
#0E051A #120620 #2E0F54 #4A1888 #6722BC

Accessibility & contrast

On white

16.00
#2E0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F54
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F54#FFFFFF#000000##FFFFFF
##2E0F541.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#252131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e0f54;
/* rgb */ color: rgb(46, 15, 84);
/* oklch */ color: oklch(26.4% 0.116 298.4);
Tailwind
colors: {
  custom: {
    50: '#6b5185',
    500: '#2e0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f54;
$custom-light: #6b5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f54",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 266.957,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26409,
    "c": 0.11573,
    "h": 298.4
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#2E0F54
secondary
#648E31
accent
#ED3B9D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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