#2E1051#2E1051

#2E1051 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.111 H 299.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2E1051
RGBrgb(46, 16, 81)
HSLhsl(268, 67%, 19%)
HSVhsv(268, 80%, 32%)
CMYKcmyk(43.2%, 80.2%, 0%, 68.2%)
CIE-LABlab(12.89, 29.82, -33.72)
CIE-LCHlch(12.89, 45.01, 311.49°)
OKLaboklab(26.25% 0.0548 -0.0963)
OKLCHoklch(26.25% 0.111 299.7)
XYZxyz(2.7968, 1.5455, 7.9339)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1051 #335110
analogous
#101351 #2E1051 #4F1051
triadic
#2E1051 #512E10 #10512E
tetradic
#2E1051 #511013 #335110 #10514F
square
#2E1051 #511013 #335110 #10514F
split-complementary
#2E1051 #514F10 #135110
monochromatic
#0F051A #11061E #2E1051 #4B1A84 #6824B7

Accessibility & contrast

On white

16.04
#2E1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1051
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1051#FFFFFF#000000##FFFFFF
##2E10511.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#26212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1051;
/* rgb */ color: rgb(46, 16, 81);
/* oklch */ color: oklch(26.2% 0.111 299.7);
Tailwind
colors: {
  custom: {
    50: '#6b5182',
    500: '#2e1051',
    950: '#000000',
  },
}
SCSS
$custom: #2e1051;
$custom-light: #6b5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1051",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 267.692,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26245,
    "c": 0.11081,
    "h": 299.7
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#2E1051
secondary
#628B32
accent
#EA3E9B
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E1051

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

Preview Lab → · Contrast checker → · Palette generator →

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