#2E245D#2E245D

#2E245D is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.098 H 287.2°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2E245D
RGBrgb(46, 36, 93)
HSLhsl(251, 44%, 25%)
HSVhsv(251, 61%, 36%)
CMYKcmyk(50.5%, 61.3%, 0%, 63.5%)
CIE-LABlab(18.51, 21.21, -32.70)
CIE-LCHlch(18.51, 38.97, 302.97°)
OKLaboklab(30.63% 0.0289 -0.0933)
OKLCHoklch(30.63% 0.098 287.2)
XYZxyz(3.7328, 2.6327, 10.6653)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E245D #535D24
analogous
#24375D #2E245D #4A245D
triadic
#2E245D #5D2E24 #245D2E
tetradic
#2E245D #5D2437 #535D24 #245D4A
square
#2E245D #5D2437 #535D24 #245D4A
split-complementary
#2E245D #5D4A24 #375D24
monochromatic
#0B0916 #181331 #2E245D #443589 #5A46B5

Accessibility & contrast

On white

13.76
#2E245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E245D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E245D#FFFFFF#000000##FFFFFF
##2E245D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5F
Deuteranopia (green-blind)
#012C5C
Tritanopia (blue-blind)
#1F313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e245d;
/* rgb */ color: rgb(46, 36, 93);
/* oklch */ color: oklch(30.6% 0.098 287.2);
Tailwind
colors: {
  custom: {
    50: '#6b5f8b',
    500: '#2e245d',
    950: '#000000',
  },
}
SCSS
$custom: #2e245d;
$custom-light: #6b5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e245d",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 250.526,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30627,
    "c": 0.09771,
    "h": 287.2
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#2E245D
secondary
#85914C
accent
#D454BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E245D

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

Preview Lab → · Contrast checker → · Palette generator →

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