#2C167D#2C167D

#2C167D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.159 H 282.0°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2C167D
RGBrgb(44, 22, 125)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(64.8%, 82.4%, 0%, 51%)
CIE-LABlab(18.32, 39.75, -53.82)
CIE-LCHlch(18.32, 66.90, 306.45°)
OKLaboklab(31.37% 0.033 -0.1553)
OKLCHoklch(31.37% 0.159 282)
XYZxyz(5.0261, 2.5896, 19.6330)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167D #677D16
analogous
#16347D #2C167D #60167D
triadic
#2C167D #7D2C16 #167D2C
tetradic
#2C167D #7D1634 #677D16 #167D60
square
#2C167D #7D1634 #677D16 #167D60
split-complementary
#2C167D #7D6016 #347D16
monochromatic
#09051A #1A0D49 #2C167D #3E1FB1 #5632DB

Accessibility & contrast

On white

13.83
#2C167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C167D
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167D#FFFFFF#000000##FFFFFF
##2C167D1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c167d;
/* rgb */ color: rgb(44, 22, 125);
/* oklch */ color: oklch(31.4% 0.159 282.0);
Tailwind
colors: {
  custom: {
    50: '#7157a4',
    500: '#2c167d',
    950: '#000000',
  },
}
SCSS
$custom: #2c167d;
$custom-light: #7157a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167d",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 252.816,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31375,
    "c": 0.15873,
    "h": 282
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#2C167D
secondary
#99B23D
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167D

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

Preview Lab → · Contrast checker → · Palette generator →

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