#2C165F#2C165F

#2C165F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.121 H 290.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2C165F
RGBrgb(44, 22, 95)
HSLhsl(258, 62%, 23%)
HSVhsv(258, 77%, 37%)
CMYKcmyk(53.7%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.14, 30.35, -39.50)
CIE-LCHlch(15.14, 49.82, 307.53°)
OKLaboklab(28.19% 0.0418 -0.1134)
OKLCHoklch(28.19% 0.121 290.2)
XYZxyz(3.3906, 1.9354, 11.0192)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C165F #495F16
analogous
#16255F #2C165F #50165F
triadic
#2C165F #5F2C16 #165F2C
tetradic
#2C165F #5F1625 #495F16 #165F50
square
#2C165F #5F1625 #495F16 #165F50
split-complementary
#2C165F #5F5016 #255F16
monochromatic
#0C0619 #150A2D #2C165F #432291 #5A2DC2

Accessibility & contrast

On white

15.14
#2C165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C165F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C165F#FFFFFF#000000##FFFFFF
##2C165F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#1A2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c165f;
/* rgb */ color: rgb(44, 22, 95);
/* oklch */ color: oklch(28.2% 0.121 290.2);
Tailwind
colors: {
  custom: {
    50: '#6b558d',
    500: '#2c165f',
    950: '#000000',
  },
}
SCSS
$custom: #2c165f;
$custom-light: #6b558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c165f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 258.082,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28192,
    "c": 0.12086,
    "h": 290.2
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#2C165F
secondary
#7B963B
accent
#E542B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C165F

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

Preview Lab → · Contrast checker → · Palette generator →

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