#2C168F#2C168F

#2C168F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.180 H 278.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2C168F
RGBrgb(44, 22, 143)
HSLhsl(251, 73%, 32%)
HSVhsv(251, 85%, 56%)
CMYKcmyk(69.2%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.41, 45.22, -61.70)
CIE-LCHlch(20.41, 76.50, 306.24°)
OKLaboklab(33.43% 0.027 -0.1782)
OKLCHoklch(33.43% 0.18 278.6)
XYZxyz(6.2819, 3.0919, 26.2470)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C168F #798F16
analogous
#163D8F #2C168F #68168F
triadic
#2C168F #8F2C16 #168F2C
tetradic
#2C168F #8F163D #798F16 #168F68
square
#2C168F #8F163D #798F16 #168F68
split-complementary
#2C168F #8F6816 #3D8F16
monochromatic
#0B0625 #1C0E5A #2C168F #3C1EC4 #5C3EE1

Accessibility & contrast

On white

12.98
#2C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C168F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C168F#FFFFFF#000000##FFFFFF
##2C168F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c168f;
/* rgb */ color: rgb(44, 22, 143);
/* oklch */ color: oklch(33.4% 0.180 278.6);
Tailwind
colors: {
  custom: {
    50: '#7559b1',
    500: '#2c168f',
    950: '#000000',
  },
}
SCSS
$custom: #2c168f;
$custom-light: #7559b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c168f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 250.909,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33432,
    "c": 0.18022,
    "h": 278.6
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#2C168F
secondary
#AAC13F
accent
#F038CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C168F

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

Preview Lab → · Contrast checker → · Palette generator →

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