#2C165C#2C165C

#2C165C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.117 H 291.3°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#2C165C
RGBrgb(44, 22, 92)
HSLhsl(259, 61%, 22%)
HSVhsv(259, 76%, 36%)
CMYKcmyk(52.2%, 76.1%, 0%, 63.9%)
CIE-LABlab(14.85, 29.41, -37.97)
CIE-LCHlch(14.85, 48.03, 307.75°)
OKLaboklab(27.9% 0.0425 -0.1089)
OKLCHoklch(27.9% 0.117 291.3)
XYZxyz(3.2568, 1.8819, 10.3148)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C165C #465C16
analogous
#16235C #2C165C #4F165C
triadic
#2C165C #5C2C16 #165C2C
tetradic
#2C165C #5C1623 #465C16 #165C4F
square
#2C165C #5C1623 #465C16 #165C4F
split-complementary
#2C165C #5C4F16 #235C16
monochromatic
#0C0619 #140A2B #2C165C #44228D #5B2EBF

Accessibility & contrast

On white

15.26
#2C165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C165C
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C165C#FFFFFF#000000##FFFFFF
##2C165C1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#1C2837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c165c;
/* rgb */ color: rgb(44, 22, 92);
/* oklch */ color: oklch(27.9% 0.117 291.3);
Tailwind
colors: {
  custom: {
    50: '#6b558b',
    500: '#2c165c',
    950: '#000000',
  },
}
SCSS
$custom: #2c165c;
$custom-light: #6b558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c165c",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 258.857,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27897,
    "c": 0.11691,
    "h": 291.3
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#2C165C
secondary
#77933B
accent
#E543B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C165C

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

Preview Lab → · Contrast checker → · Palette generator →

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