#2E1865#2E1865

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

Color values

HEX#2E1865
RGBrgb(46, 24, 101)
HSLhsl(257, 62%, 25%)
HSVhsv(257, 76%, 40%)
CMYKcmyk(54.5%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.37, 31.46, -41.46)
CIE-LCHlch(16.37, 52.04, 307.19°)
OKLaboklab(29.3% 0.0417 -0.1191)
OKLCHoklch(29.3% 0.126 289.3)
XYZxyz(3.8016, 2.1735, 12.5286)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1865 #4F6518
analogous
#182965 #2E1865 #551865
triadic
#2E1865 #652E18 #18652E
tetradic
#2E1865 #651829 #4F6518 #186555
square
#2E1865 #651829 #4F6518 #186555
split-complementary
#2E1865 #655518 #296518
monochromatic
#0B0619 #170C34 #2E1865 #452496 #5B30C8

Accessibility & contrast

On white

14.64
#2E1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1865
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1865#FFFFFF#000000##FFFFFF
##2E18651.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1865;
/* rgb */ color: rgb(46, 24, 101);
/* oklch */ color: oklch(29.3% 0.126 289.3);
Tailwind
colors: {
  custom: {
    50: '#6d5792',
    500: '#2e1865',
    950: '#000000',
  },
}
SCSS
$custom: #2e1865;
$custom-light: #6d5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1865",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 257.143,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29298,
    "c": 0.12617,
    "h": 289.3
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#2E1865
secondary
#809B3E
accent
#E543B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1865

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

Preview Lab → · Contrast checker → · Palette generator →

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