#2C178B#2C178B

#2C178B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.175 H 279.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2C178B
RGBrgb(44, 23, 139)
HSLhsl(251, 72%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(68.3%, 83.5%, 0%, 45.5%)
CIE-LABlab(20.09, 43.56, -59.73)
CIE-LCHlch(20.09, 73.93, 306.11°)
OKLaboklab(33.08% 0.0279 -0.1725)
OKLCHoklch(33.08% 0.175 279.2)
XYZxyz(6.0038, 3.0118, 24.6860)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C178B #768B17
analogous
#173C8B #2C178B #66178B
triadic
#2C178B #8B2C17 #178B2C
tetradic
#2C178B #8B173C #768B17 #178B66
square
#2C178B #8B173C #768B17 #178B66
split-complementary
#2C178B #8B6617 #3C8B17
monochromatic
#0B0622 #1B0E56 #2C178B #3D20C0 #5B3DDF

Accessibility & contrast

On white

13.11
#2C178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C178B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C178B#FFFFFF#000000##FFFFFF
##2C178B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c178b;
/* rgb */ color: rgb(44, 23, 139);
/* oklch */ color: oklch(33.1% 0.175 279.2);
Tailwind
colors: {
  custom: {
    50: '#7459ae',
    500: '#2c178b',
    950: '#000000',
  },
}
SCSS
$custom: #2c178b;
$custom-light: #7459ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c178b",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 250.862,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33076,
    "c": 0.17471,
    "h": 279.2
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#2C178B
secondary
#A7BF3F
accent
#EE39CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C178B

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

Preview Lab → · Contrast checker → · Palette generator →

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