#2E2264#2E2264

#2E2264 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.111 H 286.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2E2264
RGBrgb(46, 34, 100)
HSLhsl(251, 49%, 26%)
HSVhsv(251, 66%, 39%)
CMYKcmyk(54%, 66%, 0%, 60.8%)
CIE-LABlab(18.56, 24.92, -37.23)
CIE-LCHlch(18.56, 44.81, 303.80°)
OKLaboklab(30.85% 0.0311 -0.1067)
OKLCHoklch(30.85% 0.111 286.3)
XYZxyz(3.9983, 2.6448, 12.3539)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2264 #586422
analogous
#223764 #2E2264 #4F2264
triadic
#2E2264 #642E22 #22642E
tetradic
#2E2264 #642237 #586422 #22644F
square
#2E2264 #642237 #586422 #22644F
split-complementary
#2E2264 #644F22 #376422
monochromatic
#0B0817 #191236 #2E2264 #433292 #5842BF

Accessibility & contrast

On white

13.73
#2E2264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2264
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2264#FFFFFF#000000##FFFFFF
##2E22641.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#1A323F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2264;
/* rgb */ color: rgb(46, 34, 100);
/* oklch */ color: oklch(30.8% 0.111 286.3);
Tailwind
colors: {
  custom: {
    50: '#6c5d91',
    500: '#2e2264',
    950: '#000000',
  },
}
SCSS
$custom: #2e2264;
$custom-light: #6c5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2264",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 100
  },
  "hsl": {
    "h": 250.909,
    "s": 49.254,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30845,
    "c": 0.11113,
    "h": 286.3
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#2E2264
secondary
#8A984A
accent
#D94FC0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2E2264

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

Preview Lab → · Contrast checker → · Palette generator →

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