#2E125F#2E125F

#2E125F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.126 H 292.9°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2E125F
RGBrgb(46, 18, 95)
HSLhsl(262, 68%, 22%)
HSVhsv(262, 81%, 37%)
CMYKcmyk(51.6%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.62, 32.88, -40.35)
CIE-LCHlch(14.62, 52.05, 309.18°)
OKLaboklab(27.88% 0.0489 -0.1158)
OKLCHoklch(27.88% 0.126 292.9)
XYZxyz(3.4080, 1.8396, 10.9998)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E125F #435F12
analogous
#121D5F #2E125F #55125F
triadic
#2E125F #5F2E12 #125F2E
tetradic
#2E125F #5F121D #435F12 #125F55
square
#2E125F #5F121D #435F12 #125F55
split-complementary
#2E125F #5F5512 #1D5F12
monochromatic
#0C051A #15082C #2E125F #471C92 #6025C6

Accessibility & contrast

On white

15.35
#2E125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E125F
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E125F#FFFFFF#000000##FFFFFF
##2E125F1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1F2738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e125f;
/* rgb */ color: rgb(46, 18, 95);
/* oklch */ color: oklch(27.9% 0.126 292.9);
Tailwind
colors: {
  custom: {
    50: '#6d538d',
    500: '#2e125f',
    950: '#000000',
  },
}
SCSS
$custom: #2e125f;
$custom-light: #6d538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e125f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 261.818,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27881,
    "c": 0.1257,
    "h": 292.9
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#2E125F
secondary
#749736
accent
#EB3DAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E125F

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

Preview Lab → · Contrast checker → · Palette generator →

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