#2C166F#2C166F

#2C166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.141 H 285.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2C166F
RGBrgb(44, 22, 111)
HSLhsl(255, 67%, 26%)
HSVhsv(255, 80%, 44%)
CMYKcmyk(60.4%, 80.2%, 0%, 56.5%)
CIE-LABlab(16.78, 35.39, -47.35)
CIE-LCHlch(16.78, 59.11, 306.78°)
OKLaboklab(29.84% 0.0374 -0.1364)
OKLCHoklch(29.84% 0.141 285.3)
XYZxyz(4.1940, 2.2567, 15.2504)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166F #596F16
analogous
#162D6F #2C166F #58166F
triadic
#2C166F #6F2C16 #166F2C
tetradic
#2C166F #6F162D #596F16 #166F58
square
#2C166F #6F162D #596F16 #166F58
split-complementary
#2C166F #6F5816 #2D6F16
monochromatic
#0A051A #180C3C #2C166F #4020A2 #552BD5

Accessibility & contrast

On white

14.47
#2C166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C166F
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166F#FFFFFF#000000##FFFFFF
##2C166F1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#092F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c166f;
/* rgb */ color: rgb(44, 22, 111);
/* oklch */ color: oklch(29.8% 0.141 285.3);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2c166f',
    950: '#000000',
  },
}
SCSS
$custom: #2c166f;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 254.831,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29843,
    "c": 0.14141,
    "h": 285.3
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#2C166F
secondary
#8BA53C
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C166F

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

Preview Lab → · Contrast checker → · Palette generator →

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