#2E1875#2E1875

#2E1875 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.147 H 284.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1875
RGBrgb(46, 24, 117)
HSLhsl(254, 66%, 28%)
HSVhsv(254, 79%, 46%)
CMYKcmyk(60.7%, 79.5%, 0%, 54.1%)
CIE-LABlab(18.00, 36.49, -49.21)
CIE-LCHlch(18.00, 61.26, 306.56°)
OKLaboklab(30.94% 0.0374 -0.1418)
OKLCHoklch(30.94% 0.147 284.8)
XYZxyz(4.6633, 2.5182, 17.0665)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1875 #5F7518
analogous
#183075 #2E1875 #5D1875
triadic
#2E1875 #752E18 #18752E
tetradic
#2E1875 #751830 #5F7518 #18755D
square
#2E1875 #751830 #5F7518 #18755D
split-complementary
#2E1875 #755D18 #307518
monochromatic
#0A0519 #1A0E42 #2E1875 #4222A8 #5932D5

Accessibility & contrast

On white

13.97
#2E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1875
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1875#FFFFFF#000000##FFFFFF
##2E18751.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#063346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1875;
/* rgb */ color: rgb(46, 24, 117);
/* oklch */ color: oklch(30.9% 0.147 284.8);
Tailwind
colors: {
  custom: {
    50: '#70589e',
    500: '#2e1875',
    950: '#000000',
  },
}
SCSS
$custom: #2e1875;
$custom-light: #70589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1875",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 254.194,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30941,
    "c": 0.14662,
    "h": 284.8
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#2E1875
secondary
#91AA3F
accent
#E93FC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1875

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

Preview Lab → · Contrast checker → · Palette generator →

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