#2E2064#2E2064

#2E2064 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.114 H 287.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2E2064
RGBrgb(46, 32, 100)
HSLhsl(252, 52%, 26%)
HSVhsv(252, 68%, 39%)
CMYKcmyk(54%, 68%, 0%, 60.8%)
CIE-LABlab(18.07, 26.23, -38.03)
CIE-LCHlch(18.07, 46.20, 304.59°)
OKLaboklab(30.49% 0.0334 -0.109)
OKLCHoklch(30.49% 0.114 287)
XYZxyz(3.9428, 2.5338, 12.3354)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2064 #566420
analogous
#203464 #2E2064 #502064
triadic
#2E2064 #642E20 #20642E
tetradic
#2E2064 #642034 #566420 #206450
square
#2E2064 #642034 #566420 #206450
split-complementary
#2E2064 #645020 #346420
monochromatic
#0B0717 #191136 #2E2064 #432F92 #593EC1

Accessibility & contrast

On white

13.94
#2E2064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E2064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2064
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2064#FFFFFF#000000##FFFFFF
##2E20641.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#1A303E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2064;
/* rgb */ color: rgb(46, 32, 100);
/* oklch */ color: oklch(30.5% 0.114 287.0);
Tailwind
colors: {
  custom: {
    50: '#6c5c91',
    500: '#2e2064',
    950: '#000000',
  },
}
SCSS
$custom: #2e2064;
$custom-light: #6c5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2064",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 100
  },
  "hsl": {
    "h": 252.353,
    "s": 51.515,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.11403,
    "h": 287
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2E2064
secondary
#889848
accent
#DB4DBE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2E2064

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

Preview Lab → · Contrast checker → · Palette generator →

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