#2D125B#2D125B

#2D125B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.121 H 293.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2D125B
RGBrgb(45, 18, 91)
HSLhsl(262, 67%, 21%)
HSVhsv(262, 80%, 36%)
CMYKcmyk(50.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(14.09, 31.51, -38.55)
CIE-LCHlch(14.09, 49.79, 309.27°)
OKLaboklab(27.36% 0.0484 -0.1105)
OKLCHoklch(27.36% 0.121 293.7)
XYZxyz(3.1863, 1.7457, 10.0646)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125B #405B12
analogous
#121C5B #2D125B #52125B
triadic
#2D125B #5B2D12 #125B2D
tetradic
#2D125B #5B121C #405B12 #125B52
square
#2D125B #5B121C #405B12 #125B52
split-complementary
#2D125B #5B5212 #1C5B12
monochromatic
#0D051A #140828 #2D125B #461C8E #6026C1

Accessibility & contrast

On white

15.56
#2D125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D125B
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125B#FFFFFF#000000##FFFFFF
##2D125B1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1F2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d125b;
/* rgb */ color: rgb(45, 18, 91);
/* oklch */ color: oklch(27.4% 0.121 293.7);
Tailwind
colors: {
  custom: {
    50: '#6c538a',
    500: '#2d125b',
    950: '#000000',
  },
}
SCSS
$custom: #2d125b;
$custom-light: #6c538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125b",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 262.192,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27357,
    "c": 0.12067,
    "h": 293.7
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#2D125B
secondary
#719335
accent
#EA3EAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D125B

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

Preview Lab → · Contrast checker → · Palette generator →

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