#2C147C#2C147C

#2C147C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 282.5°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2C147C
RGBrgb(44, 20, 124)
HSLhsl(254, 72%, 28%)
HSVhsv(254, 84%, 49%)
CMYKcmyk(64.5%, 83.9%, 0%, 51.4%)
CIE-LABlab(17.88, 40.40, -53.91)
CIE-LCHlch(17.88, 67.37, 306.84°)
OKLaboklab(31.04% 0.0345 -0.1555)
OKLCHoklch(31.04% 0.159 282.5)
XYZxyz(4.9258, 2.4907, 19.2860)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C147C #647C14
analogous
#14307C #2C147C #60147C
triadic
#2C147C #7C2C14 #147C2C
tetradic
#2C147C #7C1430 #647C14 #147C60
square
#2C147C #7C1430 #647C14 #147C60
split-complementary
#2C147C #7C6014 #307C14
monochromatic
#09041A #190B47 #2C147C #3F1DB1 #562DDD

Accessibility & contrast

On white

14.02
#2C147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C147C
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C147C#FFFFFF#000000##FFFFFF
##2C147C1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c147c;
/* rgb */ color: rgb(44, 20, 124);
/* oklch */ color: oklch(31.0% 0.159 282.5);
Tailwind
colors: {
  custom: {
    50: '#7156a3',
    500: '#2c147c',
    950: '#000000',
  },
}
SCSS
$custom: #2c147c;
$custom-light: #7156a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c147c",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 253.846,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31035,
    "c": 0.15929,
    "h": 282.5
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#2C147C
secondary
#96B23A
accent
#EF39C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C147C

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

Preview Lab → · Contrast checker → · Palette generator →

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