#2E0F46#2E0F46

#2E0F46 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.099 H 306.3°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2E0F46
RGBrgb(46, 15, 70)
HSLhsl(274, 65%, 17%)
HSVhsv(274, 79%, 27%)
CMYKcmyk(34.3%, 78.6%, 0%, 72.5%)
CIE-LABlab(11.72, 27.26, -28.02)
CIE-LCHlch(11.72, 39.09, 314.22°)
OKLaboklab(25.11% 0.0583 -0.0795)
OKLCHoklch(25.11% 0.099 306.3)
XYZxyz(2.4028, 1.3647, 5.9300)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F46 #27460F
analogous
#130F46 #2E0F46 #460F43
triadic
#2E0F46 #462E0F #0F462E
tetradic
#2E0F46 #46130F #27460F #0F4346
square
#2E0F46 #46130F #27460F #0F4346
split-complementary
#2E0F46 #43460F #0F4613
monochromatic
#110519 #110519 #2E0F46 #4F1A78 #7025AB

Accessibility & contrast

On white

16.50
#2E0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E0F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F46
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F46#FFFFFF#000000##FFFFFF
##2E0F461.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#011F45
Tritanopia (blue-blind)
#2A1C29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0f46;
/* rgb */ color: rgb(46, 15, 70);
/* oklch */ color: oklch(25.1% 0.099 306.3);
Tailwind
colors: {
  custom: {
    50: '#6a507a',
    500: '#2e0f46',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f46;
$custom-light: #6a507a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f46",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 273.818,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25105,
    "c": 0.09863,
    "h": 306.3
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#2E0F46
secondary
#538030
accent
#E84089
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E0F46

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

Preview Lab → · Contrast checker → · Palette generator →

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