#2C149F#2C149F

#2C149F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.1% C 0.200 H 276.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2C149F
RGBrgb(44, 20, 159)
HSLhsl(250, 78%, 35%)
HSVhsv(250, 87%, 62%)
CMYKcmyk(72.3%, 87.4%, 0%, 37.6%)
CIE-LABlab(22.08, 50.74, -68.79)
CIE-LCHlch(22.08, 85.48, 306.41°)
OKLaboklab(35.14% 0.0224 -0.1987)
OKLCHoklch(35.14% 0.2 276.4)
XYZxyz(7.5448, 3.5383, 33.0795)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C149F #879F14
analogous
#14419F #2C149F #72149F
triadic
#2C149F #9F2C14 #149F2C
tetradic
#2C149F #9F1441 #879F14 #149F72
square
#2C149F #9F1441 #879F14 #149F72
split-complementary
#2C149F #9F7214 #419F14
monochromatic
#0E0632 #1D0D69 #2C149F #3B1BD5 #6246E8

Accessibility & contrast

On white

12.30
#2C149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C149F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C149F#FFFFFF#000000##FFFFFF
##2C149F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c149f;
/* rgb */ color: rgb(44, 20, 159);
/* oklch */ color: oklch(35.1% 0.200 276.4);
Tailwind
colors: {
  custom: {
    50: '#7959bd',
    500: '#2c149f',
    950: '#000000',
  },
}
SCSS
$custom: #2c149f;
$custom-light: #7959bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c149f",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 250.36,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.19998,
    "h": 276.4
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#2C149F
secondary
#B2C846
accent
#F434D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C149F

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

Preview Lab → · Contrast checker → · Palette generator →

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