#2C176B#2C176B

#2C176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.135 H 286.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2C176B
RGBrgb(44, 23, 107)
HSLhsl(255, 65%, 25%)
HSVhsv(255, 79%, 42%)
CMYKcmyk(58.9%, 78.5%, 0%, 58%)
CIE-LABlab(16.55, 33.58, -45.12)
CIE-LCHlch(16.55, 56.25, 306.66°)
OKLaboklab(29.55% 0.0378 -0.1299)
OKLCHoklch(29.55% 0.135 286.2)
XYZxyz(3.9981, 2.2096, 14.1229)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C176B #566B17
analogous
#172C6B #2C176B #56176B
triadic
#2C176B #6B2C17 #176B2C
tetradic
#2C176B #6B172C #566B17 #176B56
square
#2C176B #6B172C #566B17 #176B56
split-complementary
#2C176B #6B5617 #2C6B17
monochromatic
#0A0519 #170C39 #2C176B #41229D #552DD0

Accessibility & contrast

On white

14.56
#2C176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C176B
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C176B#FFFFFF#000000##FFFFFF
##2C176B1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0F2E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c176b;
/* rgb */ color: rgb(44, 23, 107);
/* oklch */ color: oklch(29.6% 0.135 286.2);
Tailwind
colors: {
  custom: {
    50: '#6d5796',
    500: '#2c176b',
    950: '#000000',
  },
}
SCSS
$custom: #2c176b;
$custom-light: #6d5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2c176b",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 255,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29554,
    "c": 0.13524,
    "h": 286.2
  },
  "luminance": 0.0221
}

Semantic roles & 50–950 ramp

primary
#2C176B
secondary
#88A13D
accent
#E840BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C176B

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

Preview Lab → · Contrast checker → · Palette generator →

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