#2C167A#2C167A

#2C167A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.155 H 282.7°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2C167A
RGBrgb(44, 22, 122)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 48%)
CMYKcmyk(63.9%, 82%, 0%, 52.2%)
CIE-LABlab(17.98, 38.82, -52.46)
CIE-LCHlch(17.98, 65.26, 306.50°)
OKLaboklab(31.04% 0.034 -0.1513)
OKLCHoklch(31.04% 0.155 282.7)
XYZxyz(4.8374, 2.5141, 18.6389)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167A #647A16
analogous
#16327A #2C167A #5E167A
triadic
#2C167A #7A2C16 #167A2C
tetradic
#2C167A #7A1632 #647A16 #167A5E
square
#2C167A #7A1632 #647A16 #167A5E
split-complementary
#2C167A #7A5E16 #327A16
monochromatic
#09051A #190D46 #2C167A #3F1FAE #5631DA

Accessibility & contrast

On white

13.97
#2C167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C167A
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167A#FFFFFF#000000##FFFFFF
##2C167A1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c167a;
/* rgb */ color: rgb(44, 22, 122);
/* oklch */ color: oklch(31.0% 0.155 282.7);
Tailwind
colors: {
  custom: {
    50: '#7157a2',
    500: '#2c167a',
    950: '#000000',
  },
}
SCSS
$custom: #2c167a;
$custom-light: #7157a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167a",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 253.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31041,
    "c": 0.15506,
    "h": 282.7
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#2C167A
secondary
#96AF3D
accent
#EC3CC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167A

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

Preview Lab → · Contrast checker → · Palette generator →

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