#2C158E#2C158E

#2C158E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.180 H 278.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2C158E
RGBrgb(44, 21, 142)
HSLhsl(251, 74%, 32%)
HSVhsv(251, 85%, 56%)
CMYKcmyk(69%, 85.2%, 0%, 44.3%)
CIE-LABlab(20.14, 45.36, -61.52)
CIE-LCHlch(20.14, 76.43, 306.40°)
OKLaboklab(33.21% 0.0278 -0.1776)
OKLCHoklch(33.21% 0.18 278.9)
XYZxyz(6.1878, 3.0243, 25.8436)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C158E #778E15
analogous
#153B8E #2C158E #69158E
triadic
#2C158E #8E2C15 #158E2C
tetradic
#2C158E #8E153B #778E15 #158E69
square
#2C158E #8E153B #778E15 #158E69
split-complementary
#2C158E #8E6915 #3B8E15
monochromatic
#0B0523 #1B0D59 #2C158E #3D1DC3 #5B3BE2

Accessibility & contrast

On white

13.08
#2C158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C158E
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C158E#FFFFFF#000000##FFFFFF
##2C158E1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c158e;
/* rgb */ color: rgb(44, 21, 142);
/* oklch */ color: oklch(33.2% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#7558b0',
    500: '#2c158e',
    950: '#000000',
  },
}
SCSS
$custom: #2c158e;
$custom-light: #7558b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c158e",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 251.405,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.17981,
    "h": 278.9
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#2C158E
secondary
#A8C23D
accent
#F137CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C158E

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

Preview Lab → · Contrast checker → · Palette generator →

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