#2E1180#2E1180

#2E1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.166 H 283.2°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1180
RGBrgb(46, 17, 128)
HSLhsl(256, 77%, 28%)
HSVhsv(256, 87%, 50%)
CMYKcmyk(64.1%, 86.7%, 0%, 49.8%)
CIE-LABlab(18.10, 43.11, -56.09)
CIE-LCHlch(18.10, 70.74, 307.55°)
OKLaboklab(31.37% 0.0379 -0.1617)
OKLCHoklch(31.37% 0.166 283.2)
XYZxyz(5.2222, 2.5399, 20.6329)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1180 #638011
analogous
#112B80 #2E1180 #651180
triadic
#2E1180 #802E11 #11802E
tetradic
#2E1180 #80112B #638011 #118065
square
#2E1180 #80112B #638011 #118065
split-complementary
#2E1180 #806511 #2B8011
monochromatic
#0A041B #1B0A4A #2E1180 #4118B6 #5929E3

Accessibility & contrast

On white

13.93
#2E1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1180
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1180#FFFFFF#000000##FFFFFF
##2E11801.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00344B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1180;
/* rgb */ color: rgb(46, 17, 128);
/* oklch */ color: oklch(31.4% 0.166 283.2);
Tailwind
colors: {
  custom: {
    50: '#7355a6',
    500: '#2e1180',
    950: '#000000',
  },
}
SCSS
$custom: #2e1180;
$custom-light: #7355a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1180",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 255.676,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31374,
    "c": 0.16611,
    "h": 283.2
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#2E1180
secondary
#95B637
accent
#F335C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1180

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

Preview Lab → · Contrast checker → · Palette generator →

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