#2E1247#2E1247

#2E1247 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.095 H 304.8°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2E1247
RGBrgb(46, 18, 71)
HSLhsl(272, 60%, 17%)
HSVhsv(272, 75%, 28%)
CMYKcmyk(35.2%, 74.6%, 0%, 72.2%)
CIE-LABlab(12.41, 25.86, -27.61)
CIE-LCHlch(12.41, 37.83, 313.13°)
OKLaboklab(25.62% 0.0544 -0.0783)
OKLCHoklch(25.62% 0.095 304.8)
XYZxyz(2.4801, 1.4684, 6.1128)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1247 #2B4712
analogous
#131247 #2E1247 #471246
triadic
#2E1247 #472E12 #12472E
tetradic
#2E1247 #471312 #2B4712 #124647
square
#2E1247 #471312 #2B4712 #124647
split-complementary
#2E1247 #464712 #124713
monochromatic
#100618 #100618 #2E1247 #4E1E78 #6D2BA9

Accessibility & contrast

On white

16.23
#2E1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1247
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1247#FFFFFF#000000##FFFFFF
##2E12471.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#291E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1247;
/* rgb */ color: rgb(46, 18, 71);
/* oklch */ color: oklch(25.6% 0.095 304.8);
Tailwind
colors: {
  custom: {
    50: '#69527b',
    500: '#2e1247',
    950: '#000000',
  },
}
SCSS
$custom: #2e1247;
$custom-light: #69527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1247",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 271.698,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25621,
    "c": 0.09536,
    "h": 304.8
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#2E1247
secondary
#588035
accent
#E3458F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1247

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

Preview Lab → · Contrast checker → · Palette generator →

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