#2E1675#2E1675

#2E1675 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.149 H 285.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2E1675
RGBrgb(46, 22, 117)
HSLhsl(255, 68%, 27%)
HSVhsv(255, 81%, 46%)
CMYKcmyk(60.7%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.64, 37.53, -49.81)
CIE-LCHlch(17.64, 62.36, 306.99°)
OKLaboklab(30.69% 0.0388 -0.1435)
OKLCHoklch(30.69% 0.149 285.1)
XYZxyz(4.6235, 2.4387, 17.0533)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1675 #5D7516
analogous
#162E75 #2E1675 #5E1675
triadic
#2E1675 #752E16 #16752E
tetradic
#2E1675 #75162E #5D7516 #16755E
square
#2E1675 #75162E #5D7516 #16755E
split-complementary
#2E1675 #755E16 #2E7516
monochromatic
#0A051A #1A0C41 #2E1675 #4220A9 #592ED8

Accessibility & contrast

On white

14.11
#2E1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1675
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1675#FFFFFF#000000##FFFFFF
##2E16751.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#063245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1675;
/* rgb */ color: rgb(46, 22, 117);
/* oklch */ color: oklch(30.7% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#71579e',
    500: '#2e1675',
    950: '#000000',
  },
}
SCSS
$custom: #2e1675;
$custom-light: #71579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1675",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 255.158,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30688,
    "c": 0.14866,
    "h": 285.1
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1675

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

Preview Lab → · Contrast checker → · Palette generator →

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