#2C165B#2C165B

#2C165B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.116 H 291.7°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2C165B
RGBrgb(44, 22, 91)
HSLhsl(259, 61%, 22%)
HSVhsv(259, 76%, 36%)
CMYKcmyk(51.6%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.76, 29.09, -37.46)
CIE-LCHlch(14.76, 47.43, 307.83°)
OKLaboklab(27.8% 0.0427 -0.1074)
OKLCHoklch(27.8% 0.116 291.7)
XYZxyz(3.2134, 1.8645, 10.0861)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C165B #455B16
analogous
#16235B #2C165B #4F165B
triadic
#2C165B #5B2C16 #165B2C
tetradic
#2C165B #5B1623 #455B16 #165B4F
square
#2C165B #5B1623 #455B16 #165B4F
split-complementary
#2C165B #5B4F16 #235B16
monochromatic
#0C0619 #140A2A #2C165B #44228C #5C2EBE

Accessibility & contrast

On white

15.29
#2C165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C165B
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C165B#FFFFFF#000000##FFFFFF
##2C165B1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#1D2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c165b;
/* rgb */ color: rgb(44, 22, 91);
/* oklch */ color: oklch(27.8% 0.116 291.7);
Tailwind
colors: {
  custom: {
    50: '#6b558a',
    500: '#2c165b',
    950: '#000000',
  },
}
SCSS
$custom: #2c165b;
$custom-light: #6b558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c165b",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 259.13,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.278,
    "c": 0.11559,
    "h": 291.7
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#2C165B
secondary
#76923B
accent
#E444B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C165B

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

Preview Lab → · Contrast checker → · Palette generator →

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