#2C178E#2C178E

#2C178E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.178 H 278.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2C178E
RGBrgb(44, 23, 142)
HSLhsl(251, 72%, 32%)
HSVhsv(251, 84%, 56%)
CMYKcmyk(69%, 83.8%, 0%, 44.3%)
CIE-LABlab(20.44, 44.47, -61.02)
CIE-LCHlch(20.44, 75.51, 306.09°)
OKLaboklab(33.42% 0.0269 -0.1762)
OKLCHoklch(33.42% 0.178 278.7)
XYZxyz(6.2260, 3.1007, 25.8563)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C178E #798E17
analogous
#173E8E #2C178E #67178E
triadic
#2C178E #8E2C17 #178E2C
tetradic
#2C178E #8E173E #798E17 #178E67
square
#2C178E #8E173E #798E17 #178E67
split-complementary
#2C178E #8E6717 #3E8E17
monochromatic
#0B0625 #1C0E59 #2C178E #3C20C3 #5C3FE0

Accessibility & contrast

On white

12.96
#2C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C178E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C178E#FFFFFF#000000##FFFFFF
##2C178E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c178e;
/* rgb */ color: rgb(44, 23, 142);
/* oklch */ color: oklch(33.4% 0.178 278.7);
Tailwind
colors: {
  custom: {
    50: '#7559b0',
    500: '#2c178e',
    950: '#000000',
  },
}
SCSS
$custom: #2c178e;
$custom-light: #7559b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c178e",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 250.588,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33421,
    "c": 0.17827,
    "h": 278.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#2C178E
secondary
#AAC040
accent
#EF39CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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