#2E1763#2E1763

#2E1763 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.125 H 290.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2E1763
RGBrgb(46, 23, 99)
HSLhsl(258, 62%, 24%)
HSVhsv(258, 77%, 39%)
CMYKcmyk(53.5%, 76.8%, 0%, 61.2%)
CIE-LABlab(15.97, 31.40, -40.79)
CIE-LCHlch(15.97, 51.48, 307.59°)
OKLaboklab(28.96% 0.0431 -0.1171)
OKLCHoklch(28.96% 0.125 290.2)
XYZxyz(3.6846, 2.0943, 12.0121)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1763 #4C6317
analogous
#172663 #2E1763 #541763
triadic
#2E1763 #632E17 #17632E
tetradic
#2E1763 #631726 #4C6317 #176354
square
#2E1763 #631726 #4C6317 #176354
split-complementary
#2E1763 #635417 #266317
monochromatic
#0C0619 #170B31 #2E1763 #452395 #5C2EC6

Accessibility & contrast

On white

14.80
#2E1763 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1763 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1763
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1763#FFFFFF#000000##FFFFFF
##2E17631.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#1C2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1763;
/* rgb */ color: rgb(46, 23, 99);
/* oklch */ color: oklch(29.0% 0.125 290.2);
Tailwind
colors: {
  custom: {
    50: '#6d5690',
    500: '#2e1763',
    950: '#000000',
  },
}
SCSS
$custom: #2e1763;
$custom-light: #6d5690;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1763",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 99
  },
  "hsl": {
    "h": 258.158,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28956,
    "c": 0.12481,
    "h": 290.2
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#2E1763
secondary
#7D9A3C
accent
#E542B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2E1763

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

Preview Lab → · Contrast checker → · Palette generator →

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