#2E125D#2E125D

#2E125D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.123 H 293.7°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2E125D
RGBrgb(46, 18, 93)
HSLhsl(262, 68%, 22%)
HSVhsv(262, 81%, 36%)
CMYKcmyk(50.5%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.42, 32.29, -39.34)
CIE-LCHlch(14.42, 50.90, 309.38°)
OKLaboklab(27.68% 0.0495 -0.1128)
OKLCHoklch(27.68% 0.123 293.7)
XYZxyz(3.3183, 1.8037, 10.5271)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E125D #415D12
analogous
#121C5D #2E125D #54125D
triadic
#2E125D #5D2E12 #125D2E
tetradic
#2E125D #5D121C #415D12 #125D54
square
#2E125D #5D121C #415D12 #125D54
split-complementary
#2E125D #5D5412 #1C5D12
monochromatic
#0D051A #15082A #2E125D #471C90 #6126C4

Accessibility & contrast

On white

15.43
#2E125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E125D
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E125D#FFFFFF#000000##FFFFFF
##2E125D1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#202637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e125d;
/* rgb */ color: rgb(46, 18, 93);
/* oklch */ color: oklch(27.7% 0.123 293.7);
Tailwind
colors: {
  custom: {
    50: '#6c538c',
    500: '#2e125d',
    950: '#000000',
  },
}
SCSS
$custom: #2e125d;
$custom-light: #6c538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e125d",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 262.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27679,
    "c": 0.12322,
    "h": 293.7
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#2E125D
secondary
#729535
accent
#EA3DAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E125D

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

Preview Lab → · Contrast checker → · Palette generator →

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