#2C168E#2C168E

#2C168E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.179 H 278.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2C168E
RGBrgb(44, 22, 142)
HSLhsl(251, 73%, 32%)
HSVhsv(251, 85%, 56%)
CMYKcmyk(69%, 84.5%, 0%, 44.3%)
CIE-LABlab(20.29, 44.92, -61.27)
CIE-LCHlch(20.29, 75.98, 306.25°)
OKLaboklab(33.32% 0.0274 -0.1769)
OKLCHoklch(33.32% 0.179 278.8)
XYZxyz(6.2065, 3.0618, 25.8498)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C168E #788E16
analogous
#163C8E #2C168E #68168E
triadic
#2C168E #8E2C16 #168E2C
tetradic
#2C168E #8E163C #788E16 #168E68
square
#2C168E #8E163C #788E16 #168E68
split-complementary
#2C168E #8E6816 #3C8E16
monochromatic
#0B0624 #1C0E59 #2C168E #3C1EC3 #5B3DE1

Accessibility & contrast

On white

13.02
#2C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C168E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C168E#FFFFFF#000000##FFFFFF
##2C168E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c168e;
/* rgb */ color: rgb(44, 22, 142);
/* oklch */ color: oklch(33.3% 0.179 278.8);
Tailwind
colors: {
  custom: {
    50: '#7558b0',
    500: '#2c168e',
    950: '#000000',
  },
}
SCSS
$custom: #2c168e;
$custom-light: #7558b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c168e",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 251,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.17905,
    "h": 278.8
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#2C168E
secondary
#A9C13F
accent
#F038CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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