#2E1075#2E1075

#2E1075 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.154 H 286.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1075
RGBrgb(46, 16, 117)
HSLhsl(258, 76%, 26%)
HSVhsv(258, 86%, 46%)
CMYKcmyk(60.7%, 86.3%, 0%, 54.1%)
CIE-LABlab(16.68, 40.32, -51.39)
CIE-LCHlch(16.68, 65.33, 308.12°)
OKLaboklab(30.02% 0.0427 -0.148)
OKLCHoklch(30.02% 0.154 286.1)
XYZxyz(4.5219, 2.2355, 17.0194)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1075 #577510
analogous
#102475 #2E1075 #601075
triadic
#2E1075 #752E10 #10752E
tetradic
#2E1075 #751024 #577510 #107560
square
#2E1075 #751024 #577510 #107560
split-complementary
#2E1075 #756010 #247510
monochromatic
#0B041B #19093F #2E1075 #4317AB #581FE0

Accessibility & contrast

On white

14.51
#2E1075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1075
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1075#FFFFFF#000000##FFFFFF
##2E10751.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#072F44
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1075;
/* rgb */ color: rgb(46, 16, 117);
/* oklch */ color: oklch(30.0% 0.154 286.1);
Tailwind
colors: {
  custom: {
    50: '#71549e',
    500: '#2e1075',
    950: '#000000',
  },
}
SCSS
$custom: #2e1075;
$custom-light: #71549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1075",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 257.822,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30022,
    "c": 0.15407,
    "h": 286.1
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2E1075
secondary
#89AC35
accent
#F335BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2E1075

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

Preview Lab → · Contrast checker → · Palette generator →

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