#2C166A#2C166A

#2C166A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.135 H 286.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2C166A
RGBrgb(44, 22, 106)
HSLhsl(256, 66%, 25%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(58.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.25, 33.82, -44.95)
CIE-LCHlch(16.25, 56.25, 306.96°)
OKLaboklab(29.31% 0.0389 -0.1294)
OKLCHoklch(29.31% 0.135 286.7)
XYZxyz(3.9264, 2.1497, 13.8409)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166A #546A16
analogous
#162A6A #2C166A #56166A
triadic
#2C166A #6A2C16 #166A2C
tetradic
#2C166A #6A162A #546A16 #166A56
square
#2C166A #6A162A #546A16 #166A56
split-complementary
#2C166A #6A5616 #2A6A16
monochromatic
#0B0519 #170B37 #2C166A #41219D #562BCF

Accessibility & contrast

On white

14.69
#2C166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C166A
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166A#FFFFFF#000000##FFFFFF
##2C166A1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#102D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c166a;
/* rgb */ color: rgb(44, 22, 106);
/* oklch */ color: oklch(29.3% 0.135 286.7);
Tailwind
colors: {
  custom: {
    50: '#6d5695',
    500: '#2c166a',
    950: '#000000',
  },
}
SCSS
$custom: #2c166a;
$custom-light: #6d5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166a",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 255.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29314,
    "c": 0.13508,
    "h": 286.7
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#2C166A
secondary
#86A03B
accent
#E93FBC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C166A

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

Preview Lab → · Contrast checker → · Palette generator →

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