#2E245F#2E245F

#2E245F is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.8% C 0.101 H 286.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#2E245F
RGBrgb(46, 36, 95)
HSLhsl(250, 45%, 26%)
HSVhsv(250, 62%, 37%)
CMYKcmyk(51.6%, 62.1%, 0%, 62.7%)
CIE-LABlab(18.66, 21.89, -33.77)
CIE-LCHlch(18.66, 40.24, 302.95°)
OKLaboklab(30.79% 0.0289 -0.0965)
OKLCHoklch(30.79% 0.101 286.7)
XYZxyz(3.8225, 2.6686, 11.1379)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E245F #555F24
analogous
#24375F #2E245F #4B245F
triadic
#2E245F #5F2E24 #245F2E
tetradic
#2E245F #5F2437 #555F24 #245F4B
square
#2E245F #5F2437 #555F24 #245F4B
split-complementary
#2E245F #5F4B24 #375F24
monochromatic
#0B0816 #191333 #2E245F #43358B #5946B8

Accessibility & contrast

On white

13.69
#2E245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E245F
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E245F#FFFFFF#000000##FFFFFF
##2E245F1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#1D313D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e245f;
/* rgb */ color: rgb(46, 36, 95);
/* oklch */ color: oklch(30.8% 0.101 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5f8d',
    500: '#2e245f',
    950: '#000000',
  },
}
SCSS
$custom: #2e245f;
$custom-light: #6b5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e245f",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 250.169,
    "s": 45.038,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30792,
    "c": 0.10073,
    "h": 286.7
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#2E245F
secondary
#87934C
accent
#D553BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E245F

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

Preview Lab → · Contrast checker → · Palette generator →

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