#2C157E#2C157E

#2C157E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.161 H 281.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2C157E
RGBrgb(44, 21, 126)
HSLhsl(253, 71%, 29%)
HSVhsv(253, 83%, 49%)
CMYKcmyk(65.1%, 83.3%, 0%, 50.6%)
CIE-LABlab(18.27, 40.54, -54.54)
CIE-LCHlch(18.27, 67.96, 306.62°)
OKLaboklab(31.37% 0.0332 -0.1573)
OKLCHoklch(31.37% 0.161 281.9)
XYZxyz(5.0716, 2.5778, 19.9649)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C157E #677E15
analogous
#15337E #2C157E #61157E
triadic
#2C157E #7E2C15 #157E2C
tetradic
#2C157E #7E1533 #677E15 #157E61
square
#2C157E #7E1533 #677E15 #157E61
split-complementary
#2C157E #7E6115 #337E15
monochromatic
#09041A #1A0C4A #2C157E #3E1EB2 #5631DD

Accessibility & contrast

On white

13.86
#2C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C157E
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C157E#FFFFFF#000000##FFFFFF
##2C157E1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c157e;
/* rgb */ color: rgb(44, 21, 126);
/* oklch */ color: oklch(31.4% 0.161 281.9);
Tailwind
colors: {
  custom: {
    50: '#7257a5',
    500: '#2c157e',
    950: '#000000',
  },
}
SCSS
$custom: #2c157e;
$custom-light: #7257a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c157e",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 253.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.16082,
    "h": 281.9
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#2C157E
secondary
#99B33C
accent
#EE3AC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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