#2C177E#2C177E

#2C177E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.159 H 281.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2C177E
RGBrgb(44, 23, 126)
HSLhsl(252, 69%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(65.1%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.60, 39.56, -53.99)
CIE-LCHlch(18.60, 66.93, 306.23°)
OKLaboklab(31.61% 0.0321 -0.1558)
OKLCHoklch(31.61% 0.159 281.6)
XYZxyz(5.1098, 2.6542, 19.9777)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C177E #697E17
analogous
#17367E #2C177E #60177E
triadic
#2C177E #7E2C17 #177E2C
tetradic
#2C177E #7E1736 #697E17 #177E60
square
#2C177E #7E1736 #697E17 #177E60
split-complementary
#2C177E #7E6017 #367E17
monochromatic
#09051A #1A0E4A #2C177E #3E20B2 #5735DA

Accessibility & contrast

On white

13.72
#2C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C177E
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C177E#FFFFFF#000000##FFFFFF
##2C177E1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c177e;
/* rgb */ color: rgb(44, 23, 126);
/* oklch */ color: oklch(31.6% 0.159 281.6);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2c177e',
    950: '#000000',
  },
}
SCSS
$custom: #2c177e;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c177e",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 252.233,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.15904,
    "h": 281.6
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#2C177E
secondary
#9BB33E
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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