#2E1275#2E1275

#2E1275 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.152 H 285.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1275
RGBrgb(46, 18, 117)
HSLhsl(257, 73%, 26%)
HSVhsv(257, 85%, 46%)
CMYKcmyk(60.7%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.98, 39.45, -50.90)
CIE-LCHlch(16.98, 64.40, 307.77°)
OKLaboklab(30.23% 0.0415 -0.1466)
OKLCHoklch(30.23% 0.152 285.8)
XYZxyz(4.5529, 2.2975, 17.0297)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1275 #597512
analogous
#122875 #2E1275 #601275
triadic
#2E1275 #752E12 #12752E
tetradic
#2E1275 #751228 #597512 #127560
square
#2E1275 #751228 #597512 #127560
split-complementary
#2E1275 #756012 #287512
monochromatic
#0A041B #190A40 #2E1275 #431AAA #5824DD

Accessibility & contrast

On white

14.39
#2E1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1275
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1275#FFFFFF#000000##FFFFFF
##2E12751.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#073044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1275;
/* rgb */ color: rgb(46, 18, 117);
/* oklch */ color: oklch(30.2% 0.152 285.8);
Tailwind
colors: {
  custom: {
    50: '#71559e',
    500: '#2e1275',
    950: '#000000',
  },
}
SCSS
$custom: #2e1275;
$custom-light: #71559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1275",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 256.97,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30229,
    "c": 0.15239,
    "h": 285.8
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2E1275
secondary
#8BAC37
accent
#F038BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1275

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

Preview Lab → · Contrast checker → · Palette generator →

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