#2C125D#2C125D

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

Color values

HEX#2C125D
RGBrgb(44, 18, 93)
HSLhsl(261, 68%, 22%)
HSVhsv(261, 81%, 36%)
CMYKcmyk(52.7%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.16, 31.94, -39.77)
CIE-LCHlch(14.16, 51.01, 308.77°)
OKLaboklab(27.44% 0.0461 -0.1142)
OKLCHoklch(27.44% 0.123 292)
XYZxyz(3.2302, 1.7583, 10.5230)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C125D #435D12
analogous
#121E5D #2C125D #52125D
triadic
#2C125D #5D2C12 #125D2C
tetradic
#2C125D #5D121E #435D12 #125D52
square
#2C125D #5D121E #435D12 #125D52
split-complementary
#2C125D #5D5212 #1E5D12
monochromatic
#0C051A #14082A #2C125D #441C90 #5D26C4

Accessibility & contrast

On white

15.54
#2C125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C125D
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C125D#FFFFFF#000000##FFFFFF
##2C125D1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1C2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c125d;
/* rgb */ color: rgb(44, 18, 93);
/* oklch */ color: oklch(27.4% 0.123 292.0);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2c125d',
    950: '#000000',
  },
}
SCSS
$custom: #2c125d;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c125d",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 260.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27439,
    "c": 0.12314,
    "h": 292
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#2C125D
secondary
#749535
accent
#EA3DAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C125D

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

Preview Lab → · Contrast checker → · Palette generator →

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