#2C174C#2C174C

#2C174C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.094 H 297.9°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2C174C
RGBrgb(44, 23, 76)
HSLhsl(264, 54%, 19%)
HSVhsv(264, 70%, 30%)
CMYKcmyk(42.1%, 69.7%, 0%, 70.2%)
CIE-LABlab(13.65, 23.80, -29.07)
CIE-LCHlch(13.65, 37.57, 309.30°)
OKLaboklab(26.59% 0.0439 -0.0827)
OKLCHoklch(26.59% 0.094 297.9)
XYZxyz(2.6493, 1.6700, 7.0188)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174C #374C17
analogous
#171D4C #2C174C #47174C
triadic
#2C174C #4C2C17 #174C2C
tetradic
#2C174C #4C171D #374C17 #174C47
square
#2C174C #4C171D #374C17 #174C47
split-complementary
#2C174C #4C4717 #1D4C17
monochromatic
#0E0717 #11091D #2C174C #47257B #6233AA

Accessibility & contrast

On white

15.74
#2C174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C174C
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174C#FFFFFF#000000##FFFFFF
##2C174C1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#24232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c174c;
/* rgb */ color: rgb(44, 23, 76);
/* oklch */ color: oklch(26.6% 0.094 297.9);
Tailwind
colors: {
  custom: {
    50: '#68557e',
    500: '#2c174c',
    950: '#000000',
  },
}
SCSS
$custom: #2c174c;
$custom-light: #68557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174c",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 263.774,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26587,
    "c": 0.09367,
    "h": 297.9
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#2C174C
secondary
#67833C
accent
#DD4BA3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C174C

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

Preview Lab → · Contrast checker → · Palette generator →

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