#2D125C#2D125C

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

Color values

HEX#2D125C
RGBrgb(45, 18, 92)
HSLhsl(262, 67%, 22%)
HSVhsv(262, 80%, 36%)
CMYKcmyk(51.1%, 80.4%, 0%, 63.9%)
CIE-LABlab(14.19, 31.81, -39.05)
CIE-LCHlch(14.19, 50.37, 309.17°)
OKLaboklab(27.46% 0.0481 -0.112)
OKLCHoklch(27.46% 0.122 293.3)
XYZxyz(3.2297, 1.7631, 10.2933)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125C #415C12
analogous
#121C5C #2D125C #52125C
triadic
#2D125C #5C2D12 #125C2D
tetradic
#2D125C #5C121C #415C12 #125C52
square
#2D125C #5C121C #415C12 #125C52
split-complementary
#2D125C #5C5212 #1C5C12
monochromatic
#0D051A #140829 #2D125C #461C8F #5F26C2

Accessibility & contrast

On white

15.53
#2D125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D125C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125C#FFFFFF#000000##FFFFFF
##2D125C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1F2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d125c;
/* rgb */ color: rgb(45, 18, 92);
/* oklch */ color: oklch(27.5% 0.122 293.3);
Tailwind
colors: {
  custom: {
    50: '#6c538b',
    500: '#2d125c',
    950: '#000000',
  },
}
SCSS
$custom: #2d125c;
$custom-light: #6c538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125c",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 261.892,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27457,
    "c": 0.12192,
    "h": 293.3
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#2D125C
secondary
#729435
accent
#EA3EAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D125C

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

Preview Lab → · Contrast checker → · Palette generator →

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