#2C164D#2C164D

#2C164D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.097 H 297.8°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2C164D
RGBrgb(44, 22, 77)
HSLhsl(264, 56%, 19%)
HSVhsv(264, 71%, 30%)
CMYKcmyk(42.9%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.50, 24.73, -30.00)
CIE-LCHlch(13.50, 38.88, 309.50°)
OKLaboklab(26.51% 0.0451 -0.0855)
OKLCHoklch(26.51% 0.097 297.8)
XYZxyz(2.6648, 1.6451, 7.1969)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C164D #374D16
analogous
#161C4D #2C164D #48164D
triadic
#2C164D #4D2C16 #164D2C
tetradic
#2C164D #4D161C #374D16 #164D48
square
#2C164D #4D161C #374D16 #164D48
split-complementary
#2C164D #4D4816 #1C4D16
monochromatic
#0E0718 #11081D #2C164D #47247D #6231AC

Accessibility & contrast

On white

15.80
#2C164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C164D
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C164D#FFFFFF#000000##FFFFFF
##2C164D1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.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: #2c164d;
/* rgb */ color: rgb(44, 22, 77);
/* oklch */ color: oklch(26.5% 0.097 297.8);
Tailwind
colors: {
  custom: {
    50: '#68557f',
    500: '#2c164d',
    950: '#000000',
  },
}
SCSS
$custom: #2c164d;
$custom-light: #68557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c164d",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26506,
    "c": 0.09666,
    "h": 297.8
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#2C164D
secondary
#67853A
accent
#DF49A3
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C164D

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

Preview Lab → · Contrast checker → · Palette generator →

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