#2C174E#2C174E

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

Color values

HEX#2C174E
RGBrgb(44, 23, 78)
HSLhsl(263, 54%, 20%)
HSVhsv(263, 71%, 31%)
CMYKcmyk(43.6%, 70.5%, 0%, 69.4%)
CIE-LABlab(13.82, 24.41, -30.18)
CIE-LCHlch(13.82, 38.82, 308.98°)
OKLaboklab(26.76% 0.0437 -0.086)
OKLCHoklch(26.76% 0.096 296.9)
XYZxyz(2.7199, 1.6983, 7.3907)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174E #394E17
analogous
#171E4E #2C174E #48174E
triadic
#2C174E #4E2C17 #174E2C
tetradic
#2C174E #4E171E #394E17 #174E48
square
#2C174E #4E171E #394E17 #174E48
split-complementary
#2C174E #4E4817 #1E4E17
monochromatic
#0D0718 #11091F #2C174E #47257D #6133AD

Accessibility & contrast

On white

15.68
#2C174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C174E
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174E#FFFFFF#000000##FFFFFF
##2C174E1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#242430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c174e;
/* rgb */ color: rgb(44, 23, 78);
/* oklch */ color: oklch(26.8% 0.096 296.9);
Tailwind
colors: {
  custom: {
    50: '#685580',
    500: '#2c174e',
    950: '#000000',
  },
}
SCSS
$custom: #2c174e;
$custom-light: #685580;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174e",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 262.909,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2676,
    "c": 0.09647,
    "h": 296.9
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#2C174E
secondary
#69853C
accent
#DE4AA5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C174E

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

Preview Lab → · Contrast checker → · Palette generator →

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