#2C164E#2C164E

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

Color values

HEX#2C164E
RGBrgb(44, 22, 78)
HSLhsl(264, 56%, 20%)
HSVhsv(264, 72%, 31%)
CMYKcmyk(43.6%, 71.8%, 0%, 69.4%)
CIE-LABlab(13.59, 25.04, -30.55)
CIE-LCHlch(13.59, 39.50, 309.34°)
OKLaboklab(26.59% 0.045 -0.0871)
OKLCHoklch(26.59% 0.098 297.3)
XYZxyz(2.7004, 1.6593, 7.3843)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C164E #384E16
analogous
#161C4E #2C164E #48164E
triadic
#2C164E #4E2C16 #164E2C
tetradic
#2C164E #4E161C #384E16 #164E48
square
#2C164E #4E161C #384E16 #164E48
split-complementary
#2C164E #4E4816 #1C4E16
monochromatic
#0D0718 #11091E #2C164E #47237E #6231AD

Accessibility & contrast

On white

15.77
#2C164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C164E
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C164E#FFFFFF#000000##FFFFFF
##2C164E1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#24232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c164e;
/* rgb */ color: rgb(44, 22, 78);
/* oklch */ color: oklch(26.6% 0.098 297.3);
Tailwind
colors: {
  custom: {
    50: '#695580',
    500: '#2c164e',
    950: '#000000',
  },
}
SCSS
$custom: #2c164e;
$custom-light: #695580;
$custom-dark: #000000;
JSON
{
  "hex": "#2c164e",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 263.571,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26594,
    "c": 0.09804,
    "h": 297.3
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#2C164E
secondary
#68853A
accent
#DF49A4
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C164E

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

Preview Lab → · Contrast checker → · Palette generator →

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