#2C125C#2C125C

#2C125C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.122 H 292.4°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2C125C
RGBrgb(44, 18, 92)
HSLhsl(261, 67%, 22%)
HSVhsv(261, 80%, 36%)
CMYKcmyk(52.2%, 80.4%, 0%, 63.9%)
CIE-LABlab(14.06, 31.64, -39.27)
CIE-LCHlch(14.06, 50.43, 308.86°)
OKLaboklab(27.34% 0.0464 -0.1127)
OKLCHoklch(27.34% 0.122 292.4)
XYZxyz(3.1862, 1.7407, 10.2912)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C125C #425C12
analogous
#121D5C #2C125C #51125C
triadic
#2C125C #5C2C12 #125C2C
tetradic
#2C125C #5C121D #425C12 #125C51
square
#2C125C #5C121D #425C12 #125C51
split-complementary
#2C125C #5C5112 #1D5C12
monochromatic
#0C051A #140829 #2C125C #441C8F #5D26C2

Accessibility & contrast

On white

15.58
#2C125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C125C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C125C#FFFFFF#000000##FFFFFF
##2C125C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c125c;
/* rgb */ color: rgb(44, 18, 92);
/* oklch */ color: oklch(27.3% 0.122 292.4);
Tailwind
colors: {
  custom: {
    50: '#6b538b',
    500: '#2c125c',
    950: '#000000',
  },
}
SCSS
$custom: #2c125c;
$custom-light: #6b538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c125c",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 261.081,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27337,
    "c": 0.12189,
    "h": 292.4
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#2C125C
secondary
#739435
accent
#EA3EAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C125C

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

Preview Lab → · Contrast checker → · Palette generator →

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