#2E1052#2E1052

#2E1052 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.112 H 299.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1052
RGBrgb(46, 16, 82)
HSLhsl(267, 67%, 19%)
HSVhsv(267, 80%, 32%)
CMYKcmyk(43.9%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.99, 30.11, -34.25)
CIE-LCHlch(12.99, 45.60, 311.32°)
OKLaboklab(26.34% 0.0546 -0.0979)
OKLCHoklch(26.34% 0.112 299.1)
XYZxyz(2.8346, 1.5606, 8.1329)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1052 #345210
analogous
#101352 #2E1052 #4F1052
triadic
#2E1052 #522E10 #10522E
tetradic
#2E1052 #521013 #345210 #10524F
square
#2E1052 #521013 #345210 #10524F
split-complementary
#2E1052 #524F10 #135210
monochromatic
#0E051A #11061F #2E1052 #4B1A85 #6724B8

Accessibility & contrast

On white

16.00
#2E1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1052
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1052#FFFFFF#000000##FFFFFF
##2E10521.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#252130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1052;
/* rgb */ color: rgb(46, 16, 82);
/* oklch */ color: oklch(26.3% 0.112 299.1);
Tailwind
colors: {
  custom: {
    50: '#6b5183',
    500: '#2e1052',
    950: '#000000',
  },
}
SCSS
$custom: #2e1052;
$custom-light: #6b5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1052",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 267.273,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26341,
    "c": 0.11205,
    "h": 299.1
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#2E1052
secondary
#638C32
accent
#EA3E9C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1052

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

Preview Lab → · Contrast checker → · Palette generator →

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