#2C174A#2C174A

#2C174A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.091 H 299.0°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2C174A
RGBrgb(44, 23, 74)
HSLhsl(265, 53%, 19%)
HSVhsv(265, 69%, 29%)
CMYKcmyk(40.5%, 68.9%, 0%, 71%)
CIE-LABlab(13.49, 23.18, -27.95)
CIE-LCHlch(13.49, 36.32, 309.67°)
OKLaboklab(26.42% 0.0441 -0.0795)
OKLCHoklch(26.42% 0.091 299)
XYZxyz(2.5808, 1.6426, 6.6583)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174A #354A17
analogous
#171C4A #2C174A #46174A
triadic
#2C174A #4A2C17 #174A2C
tetradic
#2C174A #4A171C #354A17 #174A46
square
#2C174A #4A171C #354A17 #174A46
split-complementary
#2C174A #4A4617 #1C4A17
monochromatic
#0E0717 #10081B #2C174A #482679 #6434A7

Accessibility & contrast

On white

15.81
#2C174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C174A
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174A#FFFFFF#000000##FFFFFF
##2C174A1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#032249
Tritanopia (blue-blind)
#25222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c174a;
/* rgb */ color: rgb(44, 23, 74);
/* oklch */ color: oklch(26.4% 0.091 299.0);
Tailwind
colors: {
  custom: {
    50: '#68557d',
    500: '#2c174a',
    950: '#000000',
  },
}
SCSS
$custom: #2c174a;
$custom-light: #68557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174a",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 264.706,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26417,
    "c": 0.09087,
    "h": 299
  },
  "luminance": 0.01643
}

Semantic roles & 50–950 ramp

primary
#2C174A
secondary
#65813C
accent
#DC4CA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C174A

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

Preview Lab → · Contrast checker → · Palette generator →

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