#2C166B#2C166B

#2C166B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.136 H 286.4°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2C166B
RGBrgb(44, 22, 107)
HSLhsl(256, 66%, 25%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(58.9%, 79.4%, 0%, 58%)
CIE-LABlab(16.36, 34.13, -45.43)
CIE-LCHlch(16.36, 56.83, 306.92°)
OKLaboklab(29.42% 0.0386 -0.1308)
OKLCHoklch(29.42% 0.136 286.4)
XYZxyz(3.9787, 2.1706, 14.1164)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166B #556B16
analogous
#162B6B #2C166B #56166B
triadic
#2C166B #6B2C16 #166B2C
tetradic
#2C166B #6B162B #556B16 #166B56
square
#2C166B #6B162B #556B16 #166B56
split-complementary
#2C166B #6B5616 #2B6B16
monochromatic
#0A0519 #170C38 #2C166B #41209E #562BD1

Accessibility & contrast

On white

14.64
#2C166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C166B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166B#FFFFFF#000000##FFFFFF
##2C166B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0F2E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c166b;
/* rgb */ color: rgb(44, 22, 107);
/* oklch */ color: oklch(29.4% 0.136 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5696',
    500: '#2c166b',
    950: '#000000',
  },
}
SCSS
$custom: #2c166b;
$custom-light: #6e5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166b",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 255.529,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29419,
    "c": 0.13635,
    "h": 286.4
  },
  "luminance": 0.02171
}

Semantic roles & 50–950 ramp

primary
#2C166B
secondary
#87A13B
accent
#E93FBD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C166B

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

Preview Lab → · Contrast checker → · Palette generator →

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