#2C147D#2C147D

#2C147D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.160 H 282.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2C147D
RGBrgb(44, 20, 125)
HSLhsl(254, 72%, 28%)
HSVhsv(254, 84%, 49%)
CMYKcmyk(64.8%, 84%, 0%, 51%)
CIE-LABlab(17.99, 40.70, -54.36)
CIE-LCHlch(17.99, 67.91, 306.82°)
OKLaboklab(31.15% 0.0341 -0.1568)
OKLCHoklch(31.15% 0.16 282.3)
XYZxyz(4.9894, 2.5161, 19.6208)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C147D #657D14
analogous
#14307D #2C147D #60147D
triadic
#2C147D #7D2C14 #147D2C
tetradic
#2C147D #7D1430 #657D14 #147D60
square
#2C147D #7D1430 #657D14 #147D60
split-complementary
#2C147D #7D6014 #307D14
monochromatic
#09041A #190C48 #2C147D #3F1CB2 #562EDE

Accessibility & contrast

On white

13.97
#2C147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C147D
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C147D#FFFFFF#000000##FFFFFF
##2C147D1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c147d;
/* rgb */ color: rgb(44, 20, 125);
/* oklch */ color: oklch(31.1% 0.160 282.3);
Tailwind
colors: {
  custom: {
    50: '#7156a4',
    500: '#2c147d',
    950: '#000000',
  },
}
SCSS
$custom: #2c147d;
$custom-light: #7156a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c147d",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 253.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31148,
    "c": 0.16048,
    "h": 282.3
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C147D

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

Preview Lab → · Contrast checker → · Palette generator →

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