#2E1965#2E1965

#2E1965 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.125 H 289.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1965
RGBrgb(46, 25, 101)
HSLhsl(257, 60%, 25%)
HSVhsv(257, 75%, 40%)
CMYKcmyk(54.5%, 75.2%, 0%, 60.4%)
CIE-LABlab(16.58, 30.88, -41.12)
CIE-LCHlch(16.58, 51.42, 306.90°)
OKLaboklab(29.45% 0.0407 -0.1181)
OKLCHoklch(29.45% 0.125 289)
XYZxyz(3.8226, 2.2155, 12.5356)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1965 #506519
analogous
#192A65 #2E1965 #541965
triadic
#2E1965 #652E19 #19652E
tetradic
#2E1965 #65192A #506519 #196554
square
#2E1965 #65192A #506519 #196554
split-complementary
#2E1965 #655419 #2A6519
monochromatic
#0B0619 #180D34 #2E1965 #442596 #5B31C7

Accessibility & contrast

On white

14.55
#2E1965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1965
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1965#FFFFFF#000000##FFFFFF
##2E19651.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1A2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1965;
/* rgb */ color: rgb(46, 25, 101);
/* oklch */ color: oklch(29.4% 0.125 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d5892',
    500: '#2e1965',
    950: '#000000',
  },
}
SCSS
$custom: #2e1965;
$custom-light: #6d5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1965",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 256.579,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29445,
    "c": 0.12491,
    "h": 289
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#2E1965
secondary
#819B3F
accent
#E344B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1965

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

Preview Lab → · Contrast checker → · Palette generator →

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