#2E1963#2E1963

#2E1963 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.122 H 289.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2E1963
RGBrgb(46, 25, 99)
HSLhsl(257, 60%, 24%)
HSVhsv(257, 75%, 39%)
CMYKcmyk(53.5%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.39, 30.24, -40.11)
CIE-LCHlch(16.39, 50.24, 307.01°)
OKLaboklab(29.25% 0.0411 -0.1151)
OKLCHoklch(29.25% 0.122 289.7)
XYZxyz(3.7258, 2.1768, 12.0258)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1963 #4E6319
analogous
#192963 #2E1963 #531963
triadic
#2E1963 #632E19 #19632E
tetradic
#2E1963 #631929 #4E6319 #196353
square
#2E1963 #631929 #4E6319 #196353
split-complementary
#2E1963 #635319 #296319
monochromatic
#0B0618 #170D32 #2E1963 #452594 #5B32C5

Accessibility & contrast

On white

14.63
#2E1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1963 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1963
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1963#FFFFFF#000000##FFFFFF
##2E19631.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#1B2C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1963;
/* rgb */ color: rgb(46, 25, 99);
/* oklch */ color: oklch(29.3% 0.122 289.7);
Tailwind
colors: {
  custom: {
    50: '#6d5890',
    500: '#2e1963',
    950: '#000000',
  },
}
SCSS
$custom: #2e1963;
$custom-light: #6d5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1963",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 257.027,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2925,
    "c": 0.12226,
    "h": 289.7
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#2E1963
secondary
#7F993F
accent
#E345B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2E1963

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

Preview Lab → · Contrast checker → · Palette generator →

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