#2C178C#2C178C

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

Color values

HEX#2C178C
RGBrgb(44, 23, 140)
HSLhsl(251, 72%, 32%)
HSVhsv(251, 84%, 55%)
CMYKcmyk(68.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.21, 43.87, -60.16)
CIE-LCHlch(20.21, 74.45, 306.10°)
OKLaboklab(33.19% 0.0276 -0.1737)
OKLCHoklch(33.19% 0.176 279)
XYZxyz(6.0772, 3.0412, 25.0726)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C178C #778C17
analogous
#173D8C #2C178C #67178C
triadic
#2C178C #8C2C17 #178C2C
tetradic
#2C178C #8C173D #778C17 #178C67
square
#2C178C #8C173D #778C17 #178C67
split-complementary
#2C178C #8C6717 #3D8C17
monochromatic
#0B0623 #1B0E57 #2C178C #3D20C1 #5B3EDF

Accessibility & contrast

On white

13.06
#2C178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C178C
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C178C#FFFFFF#000000##FFFFFF
##2C178C1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c178c;
/* rgb */ color: rgb(44, 23, 140);
/* oklch */ color: oklch(33.2% 0.176 279.0);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2c178c',
    950: '#000000',
  },
}
SCSS
$custom: #2c178c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c178c",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 250.769,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33191,
    "c": 0.17591,
    "h": 279
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#2C178C
secondary
#A8BF3F
accent
#EF39CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C178C

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

Preview Lab → · Contrast checker → · Palette generator →

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