#2E1852#2E1852

#2E1852 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.101 H 296.7°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1852
RGBrgb(46, 24, 82)
HSLhsl(263, 55%, 21%)
HSVhsv(263, 71%, 32%)
CMYKcmyk(43.9%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.64, 25.51, -31.56)
CIE-LCHlch(14.64, 40.58, 308.95°)
OKLaboklab(27.52% 0.0452 -0.09)
OKLCHoklch(27.52% 0.101 296.7)
XYZxyz(2.9759, 1.8433, 8.1800)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1852 #3C5218
analogous
#181F52 #2E1852 #4B1852
triadic
#2E1852 #522E18 #18522E
tetradic
#2E1852 #52181F #3C5218 #18524B
square
#2E1852 #52181F #3C5218 #18524B
split-complementary
#2E1852 #524B18 #1F5218
monochromatic
#0D0718 #130A23 #2E1852 #492681 #6334B1

Accessibility & contrast

On white

15.34
#2E1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1852
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1852#FFFFFF#000000##FFFFFF
##2E18521.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#252532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1852;
/* rgb */ color: rgb(46, 24, 82);
/* oklch */ color: oklch(27.5% 0.101 296.7);
Tailwind
colors: {
  custom: {
    50: '#6a5683',
    500: '#2e1852',
    950: '#000000',
  },
}
SCSS
$custom: #2e1852;
$custom-light: #6a5683;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1852",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 262.759,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27521,
    "c": 0.1007,
    "h": 296.7
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2E1852
secondary
#6C893D
accent
#DE4AA6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1852

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

Preview Lab → · Contrast checker → · Palette generator →

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