#2E1950#2E1950

#2E1950 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.096 H 297.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2E1950
RGBrgb(46, 25, 80)
HSLhsl(263, 52%, 21%)
HSVhsv(263, 69%, 31%)
CMYKcmyk(42.5%, 68.8%, 0%, 68.6%)
CIE-LABlab(14.71, 24.27, -30.09)
CIE-LCHlch(14.71, 38.66, 308.89°)
OKLaboklab(27.52% 0.0441 -0.0857)
OKLCHoklch(27.52% 0.096 297.2)
XYZxyz(2.9219, 1.8552, 7.7920)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1950 #3B5019
analogous
#191F50 #2E1950 #491950
triadic
#2E1950 #502E19 #19502E
tetradic
#2E1950 #50191F #3B5019 #195049
square
#2E1950 #50191F #3B5019 #195049
split-complementary
#2E1950 #504919 #1F5019
monochromatic
#0D0717 #130A21 #2E1950 #49287F #6436AD

Accessibility & contrast

On white

15.32
#2E1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1950
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1950#FFFFFF#000000##FFFFFF
##2E19501.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#262531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1950;
/* rgb */ color: rgb(46, 25, 80);
/* oklch */ color: oklch(27.5% 0.096 297.2);
Tailwind
colors: {
  custom: {
    50: '#6a5781',
    500: '#2e1950',
    950: '#000000',
  },
}
SCSS
$custom: #2e1950;
$custom-light: #6a5781;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1950",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 262.909,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27517,
    "c": 0.09634,
    "h": 297.2
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#2E1950
secondary
#6B863E
accent
#DC4CA5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1950

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

Preview Lab → · Contrast checker → · Palette generator →

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