#2E1750#2E1750

#2E1750 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.100 H 298.0°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1750
RGBrgb(46, 23, 80)
HSLhsl(264, 55%, 20%)
HSVhsv(264, 71%, 31%)
CMYKcmyk(42.5%, 71.2%, 0%, 68.6%)
CIE-LABlab(14.25, 25.52, -30.84)
CIE-LCHlch(14.25, 40.03, 309.61°)
OKLaboklab(27.18% 0.0467 -0.0879)
OKLCHoklch(27.18% 0.1 298)
XYZxyz(2.8807, 1.7728, 7.7783)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1750 #395017
analogous
#171C50 #2E1750 #4B1750
triadic
#2E1750 #502E17 #17502E
tetradic
#2E1750 #50171C #395017 #17504B
square
#2E1750 #50171C #395017 #17504B
split-complementary
#2E1750 #504B17 #1C5017
monochromatic
#0E0718 #130920 #2E1750 #492580 #6532AF

Accessibility & contrast

On white

15.50
#2E1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1750
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1750#FFFFFF#000000##FFFFFF
##2E17501.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#262431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1750;
/* rgb */ color: rgb(46, 23, 80);
/* oklch */ color: oklch(27.2% 0.100 298.0);
Tailwind
colors: {
  custom: {
    50: '#6a5582',
    500: '#2e1750',
    950: '#000000',
  },
}
SCSS
$custom: #2e1750;
$custom-light: #6a5582;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1750",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 264.211,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27183,
    "c": 0.0995,
    "h": 298
  },
  "luminance": 0.01773
}

Semantic roles & 50–950 ramp

primary
#2E1750
secondary
#69873C
accent
#DF49A2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1750

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

Preview Lab → · Contrast checker → · Palette generator →

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