#2E0F51#2E0F51

#2E0F51 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.112 H 299.9°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2E0F51
RGBrgb(46, 15, 81)
HSLhsl(268, 69%, 19%)
HSVhsv(268, 81%, 32%)
CMYKcmyk(43.2%, 81.5%, 0%, 68.2%)
CIE-LABlab(12.71, 30.34, -34.01)
CIE-LCHlch(12.71, 45.58, 311.73°)
OKLaboklab(26.12% 0.0559 -0.0972)
OKLCHoklch(26.12% 0.112 299.9)
XYZxyz(2.7824, 1.5165, 7.9291)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F51 #32510F
analogous
#0F1151 #2E0F51 #4F0F51
triadic
#2E0F51 #512E0F #0F512E
tetradic
#2E0F51 #510F11 #32510F #0F514F
square
#2E0F51 #510F11 #32510F #0F514F
split-complementary
#2E0F51 #514F0F #11510F
monochromatic
#0F051A #11051D #2E0F51 #4B1985 #6922B8

Accessibility & contrast

On white

16.11
#2E0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E0F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F51
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F51#FFFFFF#000000##FFFFFF
##2E0F511.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#26202F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e0f51;
/* rgb */ color: rgb(46, 15, 81);
/* oklch */ color: oklch(26.1% 0.112 299.9);
Tailwind
colors: {
  custom: {
    50: '#6b5182',
    500: '#2e0f51',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f51;
$custom-light: #6b5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f51",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 268.182,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26117,
    "c": 0.11208,
    "h": 299.9
  },
  "luminance": 0.01517
}

Semantic roles & 50–950 ramp

primary
#2E0F51
secondary
#618B31
accent
#EC3C99
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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