#2C166E#2C166E

#2C166E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.140 H 285.6°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2C166E
RGBrgb(44, 22, 110)
HSLhsl(255, 67%, 26%)
HSVhsv(255, 80%, 43%)
CMYKcmyk(60%, 80%, 0%, 56.9%)
CIE-LABlab(16.67, 35.08, -46.87)
CIE-LCHlch(16.67, 58.54, 306.81°)
OKLaboklab(29.74% 0.0377 -0.135)
OKLCHoklch(29.74% 0.14 285.6)
XYZxyz(4.1392, 2.2348, 14.9621)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166E #586E16
analogous
#162C6E #2C166E #58166E
triadic
#2C166E #6E2C16 #166E2C
tetradic
#2C166E #6E162C #586E16 #166E58
square
#2C166E #6E162C #586E16 #166E58
split-complementary
#2C166E #6E5816 #2C6E16
monochromatic
#0A051A #180C3B #2C166E #4020A1 #552AD4

Accessibility & contrast

On white

14.51
#2C166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C166E
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166E#FFFFFF#000000##FFFFFF
##2C166E1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#0A2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c166e;
/* rgb */ color: rgb(44, 22, 110);
/* oklch */ color: oklch(29.7% 0.140 285.6);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2c166e',
    950: '#000000',
  },
}
SCSS
$custom: #2c166e;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166e",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29736,
    "c": 0.14016,
    "h": 285.6
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C166E

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

Preview Lab → · Contrast checker → · Palette generator →

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