#2C125F#2C125F

#2C125F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.126 H 291.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2C125F
RGBrgb(44, 18, 95)
HSLhsl(260, 68%, 22%)
HSVhsv(260, 81%, 37%)
CMYKcmyk(53.7%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.37, 32.55, -40.78)
CIE-LCHlch(14.37, 52.17, 308.60°)
OKLaboklab(27.64% 0.0456 -0.1171)
OKLCHoklch(27.64% 0.126 291.3)
XYZxyz(3.3200, 1.7942, 10.9956)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C125F #455F12
analogous
#121E5F #2C125F #53125F
triadic
#2C125F #5F2C12 #125F2C
tetradic
#2C125F #5F121E #455F12 #125F53
square
#2C125F #5F121E #455F12 #125F53
split-complementary
#2C125F #5F5312 #1E5F12
monochromatic
#0C051A #14082C #2C125F #441C92 #5C25C6

Accessibility & contrast

On white

15.45
#2C125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C125F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C125F#FFFFFF#000000##FFFFFF
##2C125F1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1B2738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c125f;
/* rgb */ color: rgb(44, 18, 95);
/* oklch */ color: oklch(27.6% 0.126 291.3);
Tailwind
colors: {
  custom: {
    50: '#6c538d',
    500: '#2c125f',
    950: '#000000',
  },
}
SCSS
$custom: #2c125f;
$custom-light: #6c538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c125f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 260.26,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27645,
    "c": 0.12566,
    "h": 291.3
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#2C125F
secondary
#769736
accent
#EB3DB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C125F

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

Preview Lab → · Contrast checker → · Palette generator →

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