#2C167E#2C167E

#2C167E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.160 H 281.8°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2C167E
RGBrgb(44, 22, 126)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 83%, 49%)
CMYKcmyk(65.1%, 82.5%, 0%, 50.6%)
CIE-LABlab(18.43, 40.05, -54.27)
CIE-LCHlch(18.43, 67.45, 306.43°)
OKLaboklab(31.49% 0.0327 -0.1566)
OKLCHoklch(31.49% 0.16 281.8)
XYZxyz(5.0903, 2.6153, 19.9712)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167E #687E16
analogous
#16347E #2C167E #60167E
triadic
#2C167E #7E2C16 #167E2C
tetradic
#2C167E #7E1634 #687E16 #167E60
square
#2C167E #7E1634 #687E16 #167E60
split-complementary
#2C167E #7E6016 #347E16
monochromatic
#09051A #1A0D4A #2C167E #3E1FB2 #5733DB

Accessibility & contrast

On white

13.79
#2C167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C167E
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167E#FFFFFF#000000##FFFFFF
##2C167E1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c167e;
/* rgb */ color: rgb(44, 22, 126);
/* oklch */ color: oklch(31.5% 0.160 281.8);
Tailwind
colors: {
  custom: {
    50: '#7157a5',
    500: '#2c167e',
    950: '#000000',
  },
}
SCSS
$custom: #2c167e;
$custom-light: #7157a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167e",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 252.692,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31487,
    "c": 0.15994,
    "h": 281.8
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#2C167E
secondary
#9AB33D
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167E

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

Preview Lab → · Contrast checker → · Palette generator →

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