#2C148B#2C148B

#2C148B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.177 H 279.5°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2C148B
RGBrgb(44, 20, 139)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 86%, 55%)
CMYKcmyk(68.3%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.64, 44.90, -60.48)
CIE-LCHlch(19.64, 75.33, 306.59°)
OKLaboklab(32.76% 0.0293 -0.1746)
OKLCHoklch(32.76% 0.177 279.5)
XYZxyz(5.9476, 2.8994, 24.6673)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C148B #738B14
analogous
#14378B #2C148B #67148B
triadic
#2C148B #8B2C14 #148B2C
tetradic
#2C148B #8B1437 #738B14 #148B67
square
#2C148B #8B1437 #738B14 #148B67
split-complementary
#2C148B #8B6714 #378B14
monochromatic
#0A0520 #1B0C55 #2C148B #3D1CC1 #5A37E2

Accessibility & contrast

On white

13.29
#2C148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C148B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C148B#FFFFFF#000000##FFFFFF
##2C148B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c148b;
/* rgb */ color: rgb(44, 20, 139);
/* oklch */ color: oklch(32.8% 0.177 279.5);
Tailwind
colors: {
  custom: {
    50: '#7457ae',
    500: '#2c148b',
    950: '#000000',
  },
}
SCSS
$custom: #2c148b;
$custom-light: #7457ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c148b",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 252.101,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.17704,
    "h": 279.5
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#2C148B
secondary
#A5BF3C
accent
#F136CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2C148B

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

Preview Lab → · Contrast checker → · Palette generator →

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