#2E1876#2E1876

#2E1876 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.148 H 284.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2E1876
RGBrgb(46, 24, 118)
HSLhsl(254, 66%, 28%)
HSVhsv(254, 80%, 46%)
CMYKcmyk(61%, 79.7%, 0%, 53.7%)
CIE-LABlab(18.11, 36.80, -49.68)
CIE-LCHlch(18.11, 61.83, 306.53°)
OKLaboklab(31.05% 0.0371 -0.1431)
OKLCHoklch(31.05% 0.148 284.5)
XYZxyz(4.7224, 2.5418, 17.3778)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1876 #607618
analogous
#183176 #2E1876 #5D1876
triadic
#2E1876 #762E18 #18762E
tetradic
#2E1876 #761831 #607618 #18765D
square
#2E1876 #761831 #607618 #18765D
split-complementary
#2E1876 #765D18 #317618
monochromatic
#0A0519 #1A0E43 #2E1876 #4222A9 #5933D5

Accessibility & contrast

On white

13.92
#2E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1876
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1876#FFFFFF#000000##FFFFFF
##2E18761.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#043346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1876;
/* rgb */ color: rgb(46, 24, 118);
/* oklch */ color: oklch(31.0% 0.148 284.5);
Tailwind
colors: {
  custom: {
    50: '#71589e',
    500: '#2e1876',
    950: '#000000',
  },
}
SCSS
$custom: #2e1876;
$custom-light: #71589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1876",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 254.043,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.14787,
    "h": 284.5
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#2E1876
secondary
#92AB3F
accent
#E93FC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1876

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

Preview Lab → · Contrast checker → · Palette generator →

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