#2E245E#2E245E

#2E245E is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.7% C 0.099 H 286.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2E245E
RGBrgb(46, 36, 94)
HSLhsl(250, 45%, 25%)
HSVhsv(250, 62%, 37%)
CMYKcmyk(51.1%, 61.7%, 0%, 63.1%)
CIE-LABlab(18.59, 21.55, -33.23)
CIE-LCHlch(18.59, 39.61, 302.96°)
OKLaboklab(30.71% 0.0289 -0.0949)
OKLCHoklch(30.71% 0.099 286.9)
XYZxyz(3.7774, 2.6506, 10.9001)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E245E #545E24
analogous
#24375E #2E245E #4B245E
triadic
#2E245E #5E2E24 #245E2E
tetradic
#2E245E #5E2437 #545E24 #245E4B
square
#2E245E #5E2437 #545E24 #245E4B
split-complementary
#2E245E #5E4B24 #375E24
monochromatic
#0B0816 #181332 #2E245E #44358A #5946B7

Accessibility & contrast

On white

13.72
#2E245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E245E
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E245E#FFFFFF#000000##FFFFFF
##2E245E1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#1E313D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e245e;
/* rgb */ color: rgb(46, 36, 94);
/* oklch */ color: oklch(30.7% 0.099 286.9);
Tailwind
colors: {
  custom: {
    50: '#6b5f8c',
    500: '#2e245e',
    950: '#000000',
  },
}
SCSS
$custom: #2e245e;
$custom-light: #6b5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e245e",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 250.345,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.09922,
    "h": 286.9
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#2E245E
secondary
#86924C
accent
#D453BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E245E

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

Preview Lab → · Contrast checker → · Palette generator →

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