#2E125B#2E125B

#2E125B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.121 H 294.5°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2E125B
RGBrgb(46, 18, 91)
HSLhsl(263, 67%, 21%)
HSVhsv(263, 80%, 36%)
CMYKcmyk(49.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(14.22, 31.69, -38.33)
CIE-LCHlch(14.22, 49.73, 309.59°)
OKLaboklab(27.48% 0.0501 -0.1098)
OKLCHoklch(27.48% 0.121 294.5)
XYZxyz(3.2308, 1.7687, 10.0667)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E125B #3F5B12
analogous
#121B5B #2E125B #53125B
triadic
#2E125B #5B2E12 #125B2E
tetradic
#2E125B #5B121B #3F5B12 #125B53
square
#2E125B #5B121B #3F5B12 #125B53
split-complementary
#2E125B #5B5312 #1B5B12
monochromatic
#0D051A #140828 #2E125B #481C8E #6226C1

Accessibility & contrast

On white

15.51
#2E125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E125B
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E125B#FFFFFF#000000##FFFFFF
##2E125B1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#212535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e125b;
/* rgb */ color: rgb(46, 18, 91);
/* oklch */ color: oklch(27.5% 0.121 294.5);
Tailwind
colors: {
  custom: {
    50: '#6c538a',
    500: '#2e125b',
    950: '#000000',
  },
}
SCSS
$custom: #2e125b;
$custom-light: #6c538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e125b",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 263.014,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27479,
    "c": 0.12073,
    "h": 294.5
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#2E125B
secondary
#6F9335
accent
#EA3EA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E125B

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

Preview Lab → · Contrast checker → · Palette generator →

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