#2C167C#2C167C

#2C167C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.158 H 282.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2C167C
RGBrgb(44, 22, 124)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(64.5%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.21, 39.44, -53.37)
CIE-LCHlch(18.21, 66.36, 306.46°)
OKLaboklab(31.26% 0.0333 -0.1539)
OKLCHoklch(31.26% 0.158 282.2)
XYZxyz(4.9626, 2.5642, 19.2983)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167C #667C16
analogous
#16337C #2C167C #5F167C
triadic
#2C167C #7C2C16 #167C2C
tetradic
#2C167C #7C1633 #667C16 #167C5F
square
#2C167C #7C1633 #667C16 #167C5F
split-complementary
#2C167C #7C5F16 #337C16
monochromatic
#09051A #1A0D48 #2C167C #3E1FB0 #5632DB

Accessibility & contrast

On white

13.88
#2C167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C167C
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167C#FFFFFF#000000##FFFFFF
##2C167C1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c167c;
/* rgb */ color: rgb(44, 22, 124);
/* oklch */ color: oklch(31.3% 0.158 282.2);
Tailwind
colors: {
  custom: {
    50: '#7157a3',
    500: '#2c167c',
    950: '#000000',
  },
}
SCSS
$custom: #2c167c;
$custom-light: #7157a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167c",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 252.941,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31263,
    "c": 0.15751,
    "h": 282.2
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#2C167C
secondary
#98B13D
accent
#ED3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167C

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

Preview Lab → · Contrast checker → · Palette generator →

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