#2C147A#2C147A

#2C147A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.157 H 283.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2C147A
RGBrgb(44, 20, 122)
HSLhsl(254, 72%, 28%)
HSVhsv(254, 84%, 48%)
CMYKcmyk(63.9%, 83.6%, 0%, 52.2%)
CIE-LABlab(17.65, 39.79, -53.01)
CIE-LCHlch(17.65, 66.28, 306.89°)
OKLaboklab(30.81% 0.0352 -0.1529)
OKLCHoklch(30.81% 0.157 283)
XYZxyz(4.8006, 2.4406, 18.6267)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C147A #627A14
analogous
#142F7A #2C147A #5F147A
triadic
#2C147A #7A2C14 #147A2C
tetradic
#2C147A #7A142F #627A14 #147A5F
square
#2C147A #7A142F #627A14 #147A5F
split-complementary
#2C147A #7A5F14 #2F7A14
monochromatic
#09041A #190B45 #2C147A #3F1DAF #562CDC

Accessibility & contrast

On white

14.11
#2C147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C147A
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C147A#FFFFFF#000000##FFFFFF
##2C147A1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c147a;
/* rgb */ color: rgb(44, 20, 122);
/* oklch */ color: oklch(30.8% 0.157 283.0);
Tailwind
colors: {
  custom: {
    50: '#7156a2',
    500: '#2c147a',
    950: '#000000',
  },
}
SCSS
$custom: #2c147a;
$custom-light: #7156a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c147a",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 254.118,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30809,
    "c": 0.15687,
    "h": 283
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#2C147A
secondary
#94B03A
accent
#EF39C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C147A

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

Preview Lab → · Contrast checker → · Palette generator →

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