#2C148A#2C148A

#2C148A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.176 H 279.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2C148A
RGBrgb(44, 20, 138)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 86%, 54%)
CMYKcmyk(68.1%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.52, 44.60, -60.05)
CIE-LCHlch(19.52, 74.80, 306.60°)
OKLaboklab(32.65% 0.0296 -0.1734)
OKLCHoklch(32.65% 0.176 279.7)
XYZxyz(5.8748, 2.8703, 24.2843)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C148A #728A14
analogous
#14378A #2C148A #67148A
triadic
#2C148A #8A2C14 #148A2C
tetradic
#2C148A #8A1437 #728A14 #148A67
square
#2C148A #8A1437 #728A14 #148A67
split-complementary
#2C148A #8A6714 #378A14
monochromatic
#0A051F #1B0C55 #2C148A #3D1CBF #5936E2

Accessibility & contrast

On white

13.34
#2C148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C148A
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C148A#FFFFFF#000000##FFFFFF
##2C148A1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c148a;
/* rgb */ color: rgb(44, 20, 138);
/* oklch */ color: oklch(32.6% 0.176 279.7);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2c148a',
    950: '#000000',
  },
}
SCSS
$custom: #2c148a;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c148a",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 252.203,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.17588,
    "h": 279.7
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#2C148A
secondary
#A4BE3C
accent
#F136CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C148A

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

Preview Lab → · Contrast checker → · Palette generator →

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