#2E1057#2E1057

#2E1057 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.118 H 296.7°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2E1057
RGBrgb(46, 16, 87)
HSLhsl(265, 69%, 20%)
HSVhsv(265, 82%, 34%)
CMYKcmyk(47.1%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.47, 31.55, -36.86)
CIE-LCHlch(13.47, 48.52, 310.56°)
OKLaboklab(26.83% 0.0532 -0.1055)
OKLCHoklch(26.83% 0.118 296.7)
XYZxyz(3.0319, 1.6395, 9.1717)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1057 #395710
analogous
#101657 #2E1057 #511057
triadic
#2E1057 #572E10 #10572E
tetradic
#2E1057 #571016 #395710 #105751
square
#2E1057 #571016 #395710 #105751
split-complementary
#2E1057 #575110 #165710
monochromatic
#0E051A #130623 #2E1057 #491A8B #6523BE

Accessibility & contrast

On white

15.81
#2E1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1057
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1057#FFFFFF#000000##FFFFFF
##2E10571.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#232333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1057;
/* rgb */ color: rgb(46, 16, 87);
/* oklch */ color: oklch(26.8% 0.118 296.7);
Tailwind
colors: {
  custom: {
    50: '#6c5287',
    500: '#2e1057',
    950: '#000000',
  },
}
SCSS
$custom: #2e1057;
$custom-light: #6c5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1057",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 265.352,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26828,
    "c": 0.11819,
    "h": 296.7
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#2E1057
secondary
#699032
accent
#EC3CA2
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1057

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

Preview Lab → · Contrast checker → · Palette generator →

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