#2C174F#2C174F

#2C174F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.098 H 296.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2C174F
RGBrgb(44, 23, 79)
HSLhsl(263, 55%, 20%)
HSVhsv(263, 71%, 31%)
CMYKcmyk(44.3%, 70.9%, 0%, 69%)
CIE-LABlab(13.90, 24.73, -30.73)
CIE-LCHlch(13.90, 39.44, 308.83°)
OKLaboklab(26.85% 0.0436 -0.0876)
OKLCHoklch(26.85% 0.098 296.4)
XYZxyz(2.7560, 1.7127, 7.5810)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174F #3A4F17
analogous
#171E4F #2C174F #48174F
triadic
#2C174F #4F2C17 #174F2C
tetradic
#2C174F #4F171E #3A4F17 #174F48
square
#2C174F #4F171E #3A4F17 #174F48
split-complementary
#2C174F #4F4817 #1E4F17
monochromatic
#0D0718 #120920 #2C174F #46257E #6133AE

Accessibility & contrast

On white

15.64
#2C174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C174F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174F#FFFFFF#000000##FFFFFF
##2C174F1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#232430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c174f;
/* rgb */ color: rgb(44, 23, 79);
/* oklch */ color: oklch(26.8% 0.098 296.4);
Tailwind
colors: {
  custom: {
    50: '#695581',
    500: '#2c174f',
    950: '#000000',
  },
}
SCSS
$custom: #2c174f;
$custom-light: #695581;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174f",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 262.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26847,
    "c": 0.09786,
    "h": 296.4
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#2C174F
secondary
#6A863C
accent
#DE4AA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C174F

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

Preview Lab → · Contrast checker → · Palette generator →

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