#2E2072#2E2072

#2E2072 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.133 H 283.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2E2072
RGBrgb(46, 32, 114)
HSLhsl(250, 56%, 29%)
HSVhsv(250, 72%, 45%)
CMYKcmyk(59.6%, 71.9%, 0%, 55.3%)
CIE-LABlab(19.34, 30.91, -45.07)
CIE-LCHlch(19.34, 54.66, 304.44°)
OKLaboklab(31.8% 0.0314 -0.1297)
OKLCHoklch(31.8% 0.133 283.6)
XYZxyz(4.6796, 2.8285, 16.2157)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2072 #647220
analogous
#203B72 #2E2072 #572072
triadic
#2E2072 #722E20 #20722E
tetradic
#2E2072 #72203B #647220 #207257
square
#2E2072 #72203B #647220 #207257
split-complementary
#2E2072 #725720 #3B7220
monochromatic
#0A0718 #1B1342 #2E2072 #412DA2 #5A42CA

Accessibility & contrast

On white

13.41
#2E2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2072
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2072#FFFFFF#000000##FFFFFF
##2E20721.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#0A3546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e2072;
/* rgb */ color: rgb(46, 32, 114);
/* oklch */ color: oklch(31.8% 0.133 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f5d9b',
    500: '#2e2072',
    950: '#000000',
  },
}
SCSS
$custom: #2e2072;
$custom-light: #6f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2072",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 250.244,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31801,
    "c": 0.13345,
    "h": 283.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2E2072
secondary
#96A648
accent
#DF48C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2072

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

Preview Lab → · Contrast checker → · Palette generator →

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