#2E1269#2E1269

#2E1269 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.138 H 289.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1269
RGBrgb(46, 18, 105)
HSLhsl(259, 71%, 24%)
HSVhsv(259, 83%, 41%)
CMYKcmyk(56.2%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.66, 35.87, -45.26)
CIE-LCHlch(15.66, 57.75, 308.40°)
OKLaboklab(28.92% 0.0457 -0.1302)
OKLCHoklch(28.92% 0.138 289.3)
XYZxyz(3.8921, 2.0332, 13.5492)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1269 #4D6912
analogous
#122269 #2E1269 #5A1269
triadic
#2E1269 #692E12 #12692E
tetradic
#2E1269 #691222 #4D6912 #12695A
square
#2E1269 #691222 #4D6912 #12695A
split-complementary
#2E1269 #695A12 #226912
monochromatic
#0B041A #170935 #2E1269 #451B9D #5C24D1

Accessibility & contrast

On white

14.93
#2E1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1269
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1269#FFFFFF#000000##FFFFFF
##2E12691.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#172B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1269;
/* rgb */ color: rgb(46, 18, 105);
/* oklch */ color: oklch(28.9% 0.138 289.3);
Tailwind
colors: {
  custom: {
    50: '#6f5495',
    500: '#2e1269',
    950: '#000000',
  },
}
SCSS
$custom: #2e1269;
$custom-light: #6f5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1269",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 259.31,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28922,
    "c": 0.13796,
    "h": 289.3
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#2E1269
secondary
#7EA136
accent
#ED3AB4
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1269

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

Preview Lab → · Contrast checker → · Palette generator →

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