#2C177B#2C177B

#2C177B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 282.3°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2C177B
RGBrgb(44, 23, 123)
HSLhsl(253, 68%, 29%)
HSVhsv(253, 81%, 48%)
CMYKcmyk(64.2%, 81.3%, 0%, 51.8%)
CIE-LABlab(18.27, 38.63, -52.63)
CIE-LCHlch(18.27, 65.28, 306.28°)
OKLaboklab(31.27% 0.033 -0.1518)
OKLCHoklch(31.27% 0.155 282.3)
XYZxyz(4.9191, 2.5780, 18.9734)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C177B #667B17
analogous
#17347B #2C177B #5E177B
triadic
#2C177B #7B2C17 #177B2C
tetradic
#2C177B #7B1734 #667B17 #177B5E
square
#2C177B #7B1734 #667B17 #177B5E
split-complementary
#2C177B #7B5E17 #347B17
monochromatic
#09051A #1A0D47 #2C177B #3E21AF #5633D9

Accessibility & contrast

On white

13.86
#2C177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C177B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C177B#FFFFFF#000000##FFFFFF
##2C177B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c177b;
/* rgb */ color: rgb(44, 23, 123);
/* oklch */ color: oklch(31.3% 0.155 282.3);
Tailwind
colors: {
  custom: {
    50: '#7158a2',
    500: '#2c177b',
    950: '#000000',
  },
}
SCSS
$custom: #2c177b;
$custom-light: #7158a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c177b",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 252.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31273,
    "c": 0.15535,
    "h": 282.3
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#2C177B
secondary
#98B03E
accent
#EB3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C177B

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

Preview Lab → · Contrast checker → · Palette generator →

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