#2E1058#2E1058

#2E1058 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 296.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1058
RGBrgb(46, 16, 88)
HSLhsl(265, 69%, 20%)
HSVhsv(265, 82%, 35%)
CMYKcmyk(47.7%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.57, 31.84, -37.38)
CIE-LCHlch(13.57, 49.10, 310.43°)
OKLaboklab(26.93% 0.0529 -0.107)
OKLCHoklch(26.93% 0.119 296.3)
XYZxyz(3.0730, 1.6559, 9.3883)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1058 #3A5810
analogous
#101658 #2E1058 #521058
triadic
#2E1058 #582E10 #10582E
tetradic
#2E1058 #581016 #3A5810 #105852
square
#2E1058 #581016 #3A5810 #105852
split-complementary
#2E1058 #585210 #165810
monochromatic
#0E051A #130724 #2E1058 #49198C #6423C0

Accessibility & contrast

On white

15.78
#2E1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1058
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1058#FFFFFF#000000##FFFFFF
##2E10581.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#232333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1058;
/* rgb */ color: rgb(46, 16, 88);
/* oklch */ color: oklch(26.9% 0.119 296.3);
Tailwind
colors: {
  custom: {
    50: '#6c5288',
    500: '#2e1058',
    950: '#000000',
  },
}
SCSS
$custom: #2e1058;
$custom-light: #6c5288;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1058",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 265,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26927,
    "c": 0.1194,
    "h": 296.3
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#2E1058
secondary
#6A9132
accent
#EC3CA3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1058

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

Preview Lab → · Contrast checker → · Palette generator →

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