#2E1265#2E1265

#2E1265 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.133 H 290.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1265
RGBrgb(46, 18, 101)
HSLhsl(260, 70%, 23%)
HSVhsv(260, 82%, 40%)
CMYKcmyk(54.5%, 82.2%, 0%, 60.4%)
CIE-LABlab(15.24, 34.68, -43.32)
CIE-LCHlch(15.24, 55.49, 308.67°)
OKLaboklab(28.5% 0.047 -0.1245)
OKLCHoklch(28.5% 0.133 290.7)
XYZxyz(3.6913, 1.9529, 12.4918)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1265 #496512
analogous
#121F65 #2E1265 #571265
triadic
#2E1265 #652E12 #12652E
tetradic
#2E1265 #65121F #496512 #126557
square
#2E1265 #65121F #496512 #126557
split-complementary
#2E1265 #655712 #1F6512
monochromatic
#0C051A #160931 #2E1265 #461B99 #5D25CD

Accessibility & contrast

On white

15.10
#2E1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1265
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1265#FFFFFF#000000##FFFFFF
##2E12651.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#1A2A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1265;
/* rgb */ color: rgb(46, 18, 101);
/* oklch */ color: oklch(28.5% 0.133 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5492',
    500: '#2e1265',
    950: '#000000',
  },
}
SCSS
$custom: #2e1265;
$custom-light: #6e5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1265",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 260.241,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.285,
    "c": 0.13309,
    "h": 290.7
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#2E1265
secondary
#7A9D36
accent
#ED3BB1
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2E1265

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

Preview Lab → · Contrast checker → · Palette generator →

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