#2E1674#2E1674

#2E1674 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.147 H 285.4°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1674
RGBrgb(46, 22, 116)
HSLhsl(255, 68%, 27%)
HSVhsv(255, 81%, 45%)
CMYKcmyk(60.3%, 81%, 0%, 54.5%)
CIE-LABlab(17.53, 37.22, -49.34)
CIE-LCHlch(17.53, 61.80, 307.03°)
OKLaboklab(30.58% 0.0391 -0.1421)
OKLCHoklch(30.58% 0.147 285.4)
XYZxyz(4.5651, 2.4153, 16.7453)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1674 #5C7416
analogous
#162D74 #2E1674 #5D1674
triadic
#2E1674 #742E16 #16742E
tetradic
#2E1674 #74162D #5C7416 #16745D
square
#2E1674 #74162D #5C7416 #16745D
split-complementary
#2E1674 #745D16 #2D7416
monochromatic
#0A051A #1A0C41 #2E1674 #4220A7 #592DD7

Accessibility & contrast

On white

14.16
#2E1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1674
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1674#FFFFFF#000000##FFFFFF
##2E16741.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#083145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1674;
/* rgb */ color: rgb(46, 22, 116);
/* oklch */ color: oklch(30.6% 0.147 285.4);
Tailwind
colors: {
  custom: {
    50: '#70579d',
    500: '#2e1674',
    950: '#000000',
  },
}
SCSS
$custom: #2e1674;
$custom-light: #70579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1674",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 255.319,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3058,
    "c": 0.14742,
    "h": 285.4
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#2E1674
secondary
#8EAA3C
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1674

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

Preview Lab → · Contrast checker → · Palette generator →

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