#2E125E#2E125E

#2E125E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.124 H 293.3°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2E125E
RGBrgb(46, 18, 94)
HSLhsl(262, 68%, 22%)
HSVhsv(262, 81%, 37%)
CMYKcmyk(51.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(14.52, 32.59, -39.85)
CIE-LCHlch(14.52, 51.48, 309.28°)
OKLaboklab(27.78% 0.0492 -0.1143)
OKLCHoklch(27.78% 0.124 293.3)
XYZxyz(3.3628, 1.8215, 10.7619)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E125E #425E12
analogous
#121C5E #2E125E #54125E
triadic
#2E125E #5E2E12 #125E2E
tetradic
#2E125E #5E121C #425E12 #125E54
square
#2E125E #5E121C #425E12 #125E54
split-complementary
#2E125E #5E5412 #1C5E12
monochromatic
#0D051A #15082B #2E125E #471C91 #6026C5

Accessibility & contrast

On white

15.39
#2E125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E125E
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E125E#FFFFFF#000000##FFFFFF
##2E125E1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1F2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e125e;
/* rgb */ color: rgb(46, 18, 94);
/* oklch */ color: oklch(27.8% 0.124 293.3);
Tailwind
colors: {
  custom: {
    50: '#6d538c',
    500: '#2e125e',
    950: '#000000',
  },
}
SCSS
$custom: #2e125e;
$custom-light: #6d538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e125e",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 262.105,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27779,
    "c": 0.12446,
    "h": 293.3
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2E125E
secondary
#739635
accent
#EB3DAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E125E

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

Preview Lab → · Contrast checker → · Palette generator →

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