#2C165D#2C165D

#2C165D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.118 H 290.9°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2C165D
RGBrgb(44, 22, 93)
HSLhsl(259, 62%, 23%)
HSVhsv(259, 76%, 36%)
CMYKcmyk(52.7%, 76.3%, 0%, 63.5%)
CIE-LABlab(14.95, 29.72, -38.49)
CIE-LCHlch(14.95, 48.63, 307.68°)
OKLaboklab(27.99% 0.0423 -0.1104)
OKLCHoklch(27.99% 0.118 290.9)
XYZxyz(3.3008, 1.8995, 10.5465)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C165D #475D16
analogous
#16235D #2C165D #50165D
triadic
#2C165D #5D2C16 #165D2C
tetradic
#2C165D #5D1623 #475D16 #165D50
square
#2C165D #5D1623 #475D16 #165D50
split-complementary
#2C165D #5D5016 #235D16
monochromatic
#0C0619 #150A2C #2C165D #43228E #5B2DC0

Accessibility & contrast

On white

15.22
#2C165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C165D
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C165D#FFFFFF#000000##FFFFFF
##2C165D1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1C2838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c165d;
/* rgb */ color: rgb(44, 22, 93);
/* oklch */ color: oklch(28.0% 0.118 290.9);
Tailwind
colors: {
  custom: {
    50: '#6b558c',
    500: '#2c165d',
    950: '#000000',
  },
}
SCSS
$custom: #2c165d;
$custom-light: #6b558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c165d",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 258.592,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27995,
    "c": 0.11823,
    "h": 290.9
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#2C165D
secondary
#78943B
accent
#E543B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C165D

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

Preview Lab → · Contrast checker → · Palette generator →

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