#2C166C#2C166C

#2C166C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.138 H 286.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2C166C
RGBrgb(44, 22, 108)
HSLhsl(255, 66%, 25%)
HSVhsv(255, 80%, 42%)
CMYKcmyk(59.3%, 79.6%, 0%, 57.6%)
CIE-LABlab(16.46, 34.45, -45.91)
CIE-LCHlch(16.46, 57.40, 306.88°)
OKLaboklab(29.52% 0.0383 -0.1322)
OKLCHoklch(29.52% 0.138 286.2)
XYZxyz(4.0316, 2.1918, 14.3951)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166C #566C16
analogous
#162B6C #2C166C #57166C
triadic
#2C166C #6C2C16 #166C2C
tetradic
#2C166C #6C162B #566C16 #166C57
square
#2C166C #6C162B #566C16 #166C57
split-complementary
#2C166C #6C5716 #2B6C16
monochromatic
#0A0519 #170C39 #2C166C #41209F #552BD2

Accessibility & contrast

On white

14.60
#2C166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C166C
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166C#FFFFFF#000000##FFFFFF
##2C166C1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#0D2E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c166c;
/* rgb */ color: rgb(44, 22, 108);
/* oklch */ color: oklch(29.5% 0.138 286.2);
Tailwind
colors: {
  custom: {
    50: '#6e5697',
    500: '#2c166c',
    950: '#000000',
  },
}
SCSS
$custom: #2c166c;
$custom-light: #6e5697;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166c",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 255.349,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29524,
    "c": 0.13762,
    "h": 286.2
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2C166C
secondary
#88A23C
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C166C

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

Preview Lab → · Contrast checker → · Palette generator →

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