#2C164C#2C164C

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

Color values

HEX#2C164C
RGBrgb(44, 22, 76)
HSLhsl(264, 55%, 19%)
HSVhsv(264, 71%, 30%)
CMYKcmyk(42.1%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.42, 24.42, -29.45)
CIE-LCHlch(13.42, 38.26, 309.67°)
OKLaboklab(26.42% 0.0452 -0.0839)
OKLCHoklch(26.42% 0.095 298.3)
XYZxyz(2.6298, 1.6311, 7.0123)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C164C #364C16
analogous
#161B4C #2C164C #47164C
triadic
#2C164C #4C2C16 #164C2C
tetradic
#2C164C #4C161B #364C16 #164C47
square
#2C164C #4C161B #364C16 #164C47
split-complementary
#2C164C #4C4716 #1B4C16
monochromatic
#0E0718 #11081D #2C164C #47247B #6331AB

Accessibility & contrast

On white

15.83
#2C164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C164C
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C164C#FFFFFF#000000##FFFFFF
##2C164C1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#25222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c164c;
/* rgb */ color: rgb(44, 22, 76);
/* oklch */ color: oklch(26.4% 0.095 298.3);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2c164c',
    950: '#000000',
  },
}
SCSS
$custom: #2c164c;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c164c",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 264.444,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26419,
    "c": 0.09528,
    "h": 298.3
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#2C164C
secondary
#66843A
accent
#DE49A2
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C164C

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

Preview Lab → · Contrast checker → · Palette generator →

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