#2E1250#2E1250

#2E1250 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.107 H 299.6°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1250
RGBrgb(46, 18, 80)
HSLhsl(267, 63%, 19%)
HSVhsv(267, 78%, 31%)
CMYKcmyk(42.5%, 77.5%, 0%, 68.6%)
CIE-LABlab(13.19, 28.45, -32.56)
CIE-LCHlch(13.19, 43.24, 311.15°)
OKLaboklab(26.42% 0.0528 -0.0929)
OKLCHoklch(26.42% 0.107 299.6)
XYZxyz(2.7906, 1.5926, 7.7482)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1250 #345012
analogous
#121550 #2E1250 #4D1250
triadic
#2E1250 #502E12 #12502E
tetradic
#2E1250 #501215 #345012 #12504D
square
#2E1250 #501215 #345012 #12504D
split-complementary
#2E1250 #504D12 #155012
monochromatic
#0E0619 #11071E #2E1250 #4B1D82 #6728B4

Accessibility & contrast

On white

15.93
#2E1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1250
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1250#FFFFFF#000000##FFFFFF
##2E12501.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#26212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1250;
/* rgb */ color: rgb(46, 18, 80);
/* oklch */ color: oklch(26.4% 0.107 299.6);
Tailwind
colors: {
  custom: {
    50: '#6b5282',
    500: '#2e1250',
    950: '#000000',
  },
}
SCSS
$custom: #2e1250;
$custom-light: #6b5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1250",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 267.097,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26423,
    "c": 0.10687,
    "h": 299.6
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#2E1250
secondary
#638935
accent
#E6419C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E1250

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

Preview Lab → · Contrast checker → · Palette generator →

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