#2C125E#2C125E

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

Color values

HEX#2C125E
RGBrgb(44, 18, 94)
HSLhsl(261, 68%, 22%)
HSVhsv(261, 81%, 37%)
CMYKcmyk(53.2%, 80.9%, 0%, 63.1%)
CIE-LABlab(14.27, 32.24, -40.28)
CIE-LCHlch(14.27, 51.59, 308.68°)
OKLaboklab(27.54% 0.0459 -0.1156)
OKLCHoklch(27.54% 0.124 291.6)
XYZxyz(3.2748, 1.7761, 10.7578)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C125E #445E12
analogous
#121E5E #2C125E #52125E
triadic
#2C125E #5E2C12 #125E2C
tetradic
#2C125E #5E121E #445E12 #125E52
square
#2C125E #5E121E #445E12 #125E52
split-complementary
#2C125E #5E5212 #1E5E12
monochromatic
#0C051A #14082B #2C125E #441C91 #5C26C5

Accessibility & contrast

On white

15.50
#2C125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C125E
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C125E#FFFFFF#000000##FFFFFF
##2C125E1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1B2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c125e;
/* rgb */ color: rgb(44, 18, 94);
/* oklch */ color: oklch(27.5% 0.124 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2c125e',
    950: '#000000',
  },
}
SCSS
$custom: #2c125e;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c125e",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 260.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27542,
    "c": 0.12441,
    "h": 291.6
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#2C125E
secondary
#759635
accent
#EB3DAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C125E

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

Preview Lab → · Contrast checker → · Palette generator →

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