#2E1968#2E1968

#2E1968 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.129 H 288.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1968
RGBrgb(46, 25, 104)
HSLhsl(256, 61%, 25%)
HSVhsv(256, 76%, 41%)
CMYKcmyk(55.8%, 76%, 0%, 59.2%)
CIE-LABlab(16.87, 31.83, -42.62)
CIE-LCHlch(16.87, 53.19, 306.75°)
OKLaboklab(29.74% 0.04 -0.1225)
OKLCHoklch(29.74% 0.129 288.1)
XYZxyz(3.9723, 2.2754, 13.3239)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1968 #536819
analogous
#192C68 #2E1968 #551968
triadic
#2E1968 #682E19 #19682E
tetradic
#2E1968 #68192C #536819 #196855
square
#2E1968 #68192C #536819 #196855
split-complementary
#2E1968 #685519 #2C6819
monochromatic
#0B0619 #180D37 #2E1968 #442599 #5A31CB

Accessibility & contrast

On white

14.43
#2E1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1968
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1968#FFFFFF#000000##FFFFFF
##2E19681.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#172E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1968;
/* rgb */ color: rgb(46, 25, 104);
/* oklch */ color: oklch(29.7% 0.129 288.1);
Tailwind
colors: {
  custom: {
    50: '#6e5894',
    500: '#2e1968',
    950: '#000000',
  },
}
SCSS
$custom: #2e1968;
$custom-light: #6e5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1968",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 255.949,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29741,
    "c": 0.12886,
    "h": 288.1
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#2E1968
secondary
#859E3F
accent
#E443BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1968

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

Preview Lab → · Contrast checker → · Palette generator →

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