#2C129F#2C129F

#2C129F is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.0% C 0.201 H 276.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2C129F
RGBrgb(44, 18, 159)
HSLhsl(251, 80%, 35%)
HSVhsv(251, 89%, 62%)
CMYKcmyk(72.3%, 88.7%, 0%, 37.6%)
CIE-LABlab(21.84, 51.47, -69.20)
CIE-LCHlch(21.84, 86.24, 306.64°)
OKLaboklab(34.97% 0.0229 -0.1999)
OKLCHoklch(34.97% 0.201 276.5)
XYZxyz(7.5110, 3.4706, 33.0682)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C129F #859F12
analogous
#123E9F #2C129F #73129F
triadic
#2C129F #9F2C12 #129F2C
tetradic
#2C129F #9F123E #859F12 #129F73
square
#2C129F #9F123E #859F12 #129F73
split-complementary
#2C129F #9F7312 #3E9F12
monochromatic
#0E0631 #1D0C68 #2C129F #3B18D6 #6142EA

Accessibility & contrast

On white

12.40
#2C129F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C129F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C129F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C129F#FFFFFF#000000##FFFFFF
##2C129F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002E9D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c129f;
/* rgb */ color: rgb(44, 18, 159);
/* oklch */ color: oklch(35.0% 0.201 276.5);
Tailwind
colors: {
  custom: {
    50: '#7958bd',
    500: '#2c129f',
    950: '#000000',
  },
}
SCSS
$custom: #2c129f;
$custom-light: #7958bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c129f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 159
  },
  "hsl": {
    "h": 251.064,
    "s": 79.661,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.20118,
    "h": 276.5
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#2C129F
secondary
#B1CA43
accent
#F632D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C129F

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

Preview Lab → · Contrast checker → · Palette generator →

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