#2C148D#2C148D

#2C148D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.179 H 279.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2C148D
RGBrgb(44, 20, 141)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 86%, 55%)
CMYKcmyk(68.8%, 85.8%, 0%, 44.7%)
CIE-LABlab(19.88, 45.49, -61.33)
CIE-LCHlch(19.88, 76.36, 306.56°)
OKLaboklab(33% 0.0286 -0.1771)
OKLCHoklch(33% 0.179 279.2)
XYZxyz(6.0950, 2.9584, 25.4440)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C148D #758D14
analogous
#14398D #2C148D #69148D
triadic
#2C148D #8D2C14 #148D2C
tetradic
#2C148D #8D1439 #758D14 #148D69
square
#2C148D #8D1439 #758D14 #148D69
split-complementary
#2C148D #8D6914 #398D14
monochromatic
#0B0522 #1B0C57 #2C148D #3D1CC3 #5A39E3

Accessibility & contrast

On white

13.19
#2C148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C148D
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C148D#FFFFFF#000000##FFFFFF
##2C148D1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c148d;
/* rgb */ color: rgb(44, 20, 141);
/* oklch */ color: oklch(33.0% 0.179 279.2);
Tailwind
colors: {
  custom: {
    50: '#7557b0',
    500: '#2c148d',
    950: '#000000',
  },
}
SCSS
$custom: #2c148d;
$custom-light: #7557b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c148d",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 251.901,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.17938,
    "h": 279.2
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#2C148D
secondary
#A7C13C
accent
#F236CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C148D

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

Preview Lab → · Contrast checker → · Palette generator →

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