#2C174D#2C174D

#2C174D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.095 H 297.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2C174D
RGBrgb(44, 23, 77)
HSLhsl(263, 54%, 20%)
HSVhsv(263, 70%, 30%)
CMYKcmyk(42.9%, 70.1%, 0%, 69.8%)
CIE-LABlab(13.73, 24.11, -29.63)
CIE-LCHlch(13.73, 38.19, 309.13°)
OKLaboklab(26.67% 0.0438 -0.0844)
OKLCHoklch(26.67% 0.095 297.4)
XYZxyz(2.6843, 1.6840, 7.2034)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174D #384D17
analogous
#171D4D #2C174D #47174D
triadic
#2C174D #4D2C17 #174D2C
tetradic
#2C174D #4D171D #384D17 #174D47
square
#2C174D #4D171D #384D17 #174D47
split-complementary
#2C174D #4D4717 #1D4D17
monochromatic
#0D0718 #11091E #2C174D #47257C #6233AB

Accessibility & contrast

On white

15.71
#2C174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C174D
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174D#FFFFFF#000000##FFFFFF
##2C174D1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c174d;
/* rgb */ color: rgb(44, 23, 77);
/* oklch */ color: oklch(26.7% 0.095 297.4);
Tailwind
colors: {
  custom: {
    50: '#68557f',
    500: '#2c174d',
    950: '#000000',
  },
}
SCSS
$custom: #2c174d;
$custom-light: #68557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174d",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 263.333,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26673,
    "c": 0.09508,
    "h": 297.4
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2C174D
secondary
#68843C
accent
#DD4AA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C174D

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

Preview Lab → · Contrast checker → · Palette generator →

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