#2C167F#2C167F

#2C167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.161 H 281.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2C167F
RGBrgb(44, 22, 127)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 83%, 50%)
CMYKcmyk(65.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.55, 40.36, -54.72)
CIE-LCHlch(18.55, 67.99, 306.41°)
OKLaboklab(31.6% 0.0323 -0.1579)
OKLCHoklch(31.6% 0.161 281.6)
XYZxyz(5.1552, 2.6412, 20.3127)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167F #697F16
analogous
#16357F #2C167F #61167F
triadic
#2C167F #7F2C16 #167F2C
tetradic
#2C167F #7F1635 #697F16 #167F61
square
#2C167F #7F1635 #697F16 #167F61
split-complementary
#2C167F #7F6116 #357F16
monochromatic
#09051A #1A0D4B #2C167F #3E1FB3 #5734DC

Accessibility & contrast

On white

13.74
#2C167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C167F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167F#FFFFFF#000000##FFFFFF
##2C167F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c167f;
/* rgb */ color: rgb(44, 22, 127);
/* oklch */ color: oklch(31.6% 0.161 281.6);
Tailwind
colors: {
  custom: {
    50: '#7257a5',
    500: '#2c167f',
    950: '#000000',
  },
}
SCSS
$custom: #2c167f;
$custom-light: #7257a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 252.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.16116,
    "h": 281.6
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#2C167F
secondary
#9BB43D
accent
#ED3BC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167F

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

Preview Lab → · Contrast checker → · Palette generator →

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