#2E2074#2E2074

#2E2074 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.136 H 283.2°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2E2074
RGBrgb(46, 32, 116)
HSLhsl(250, 57%, 29%)
HSVhsv(250, 72%, 45%)
CMYKcmyk(60.3%, 72.4%, 0%, 54.5%)
CIE-LABlab(19.53, 31.58, -46.05)
CIE-LCHlch(19.53, 55.84, 304.44°)
OKLaboklab(32% 0.031 -0.1326)
OKLCHoklch(32% 0.136 283.2)
XYZxyz(4.7946, 2.8745, 16.8218)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2074 #667420
analogous
#203C74 #2E2074 #582074
triadic
#2E2074 #742E20 #20742E
tetradic
#2E2074 #74203C #667420 #207458
square
#2E2074 #74203C #667420 #207458
split-complementary
#2E2074 #745820 #3C7420
monochromatic
#0A0718 #1B1344 #2E2074 #412DA4 #5A43CB

Accessibility & contrast

On white

13.33
#2E2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E2074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2074
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2074#FFFFFF#000000##FFFFFF
##2E20741.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#063647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e2074;
/* rgb */ color: rgb(46, 32, 116);
/* oklch */ color: oklch(32.0% 0.136 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f5d9d',
    500: '#2e2074',
    950: '#000000',
  },
}
SCSS
$custom: #2e2074;
$custom-light: #6f5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2074",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 250,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31996,
    "c": 0.13614,
    "h": 283.2
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#2E2074
secondary
#98A848
accent
#E048C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2074

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

Preview Lab → · Contrast checker → · Palette generator →

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