#2E1264#2E1264

#2E1264 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.132 H 291.0°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2E1264
RGBrgb(46, 18, 100)
HSLhsl(260, 69%, 23%)
HSVhsv(260, 82%, 39%)
CMYKcmyk(54%, 82%, 0%, 60.8%)
CIE-LABlab(15.13, 34.38, -42.83)
CIE-LCHlch(15.13, 54.92, 308.75°)
OKLaboklab(28.4% 0.0474 -0.1231)
OKLCHoklch(28.4% 0.132 291)
XYZxyz(3.6426, 1.9334, 12.2354)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1264 #486412
analogous
#121F64 #2E1264 #571264
triadic
#2E1264 #642E12 #12642E
tetradic
#2E1264 #64121F #486412 #126457
square
#2E1264 #64121F #486412 #126457
split-complementary
#2E1264 #645712 #1F6412
monochromatic
#0C051A #160930 #2E1264 #461B98 #5E25CC

Accessibility & contrast

On white

15.14
#2E1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1264
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1264#FFFFFF#000000##FFFFFF
##2E12641.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1B293B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1264;
/* rgb */ color: rgb(46, 18, 100);
/* oklch */ color: oklch(28.4% 0.132 291.0);
Tailwind
colors: {
  custom: {
    50: '#6e5491',
    500: '#2e1264',
    950: '#000000',
  },
}
SCSS
$custom: #2e1264;
$custom-light: #6e5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1264",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 260.488,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28395,
    "c": 0.13186,
    "h": 291
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#2E1264
secondary
#799C36
accent
#EC3BB0
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2E1264

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

Preview Lab → · Contrast checker → · Palette generator →

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