#2C157A#2C157A

#2C157A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.156 H 282.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2C157A
RGBrgb(44, 21, 122)
HSLhsl(254, 71%, 28%)
HSVhsv(254, 83%, 48%)
CMYKcmyk(63.9%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.81, 39.31, -52.74)
CIE-LCHlch(17.81, 65.78, 306.70°)
OKLaboklab(30.92% 0.0346 -0.1521)
OKLCHoklch(30.92% 0.156 282.8)
XYZxyz(4.8186, 2.4766, 18.6327)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C157A #637A15
analogous
#15317A #2C157A #5E157A
triadic
#2C157A #7A2C15 #157A2C
tetradic
#2C157A #7A1531 #637A15 #157A5E
square
#2C157A #7A1531 #637A15 #157A5E
split-complementary
#2C157A #7A5E15 #317A15
monochromatic
#09041A #190C46 #2C157A #3F1EAE #562EDB

Accessibility & contrast

On white

14.04
#2C157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C157A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C157A#FFFFFF#000000##FFFFFF
##2C157A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c157a;
/* rgb */ color: rgb(44, 21, 122);
/* oklch */ color: oklch(30.9% 0.156 282.8);
Tailwind
colors: {
  custom: {
    50: '#7156a2',
    500: '#2c157a',
    950: '#000000',
  },
}
SCSS
$custom: #2c157a;
$custom-light: #7156a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c157a",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 253.663,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30923,
    "c": 0.15598,
    "h": 282.8
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#2C157A
secondary
#95AF3B
accent
#ED3AC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C157A

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

Preview Lab → · Contrast checker → · Palette generator →

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