#2C157C#2C157C

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

Color values

HEX#2C157C
RGBrgb(44, 21, 124)
HSLhsl(253, 71%, 28%)
HSVhsv(253, 83%, 49%)
CMYKcmyk(64.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(18.04, 39.92, -53.64)
CIE-LCHlch(18.04, 66.87, 306.66°)
OKLaboklab(31.15% 0.0339 -0.1547)
OKLCHoklch(31.15% 0.158 282.4)
XYZxyz(4.9438, 2.5267, 19.2921)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C157C #657C15
analogous
#15317C #2C157C #5F157C
triadic
#2C157C #7C2C15 #157C2C
tetradic
#2C157C #7C1531 #657C15 #157C5F
square
#2C157C #7C1531 #657C15 #157C5F
split-complementary
#2C157C #7C5F15 #317C15
monochromatic
#09041A #190C48 #2C157C #3F1EB0 #5630DC

Accessibility & contrast

On white

13.95
#2C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C157C
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C157C#FFFFFF#000000##FFFFFF
##2C157C1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.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: #2c157c;
/* rgb */ color: rgb(44, 21, 124);
/* oklch */ color: oklch(31.1% 0.158 282.4);
Tailwind
colors: {
  custom: {
    50: '#7157a3',
    500: '#2c157c',
    950: '#000000',
  },
}
SCSS
$custom: #2c157c;
$custom-light: #7157a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c157c",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 253.398,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31147,
    "c": 0.15841,
    "h": 282.4
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#2C157C
secondary
#97B13C
accent
#EE3AC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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