#2C115A#2C115A

#2C115A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 293.4°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2C115A
RGBrgb(44, 17, 90)
HSLhsl(262, 68%, 21%)
HSVhsv(262, 81%, 35%)
CMYKcmyk(51.1%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.68, 31.56, -38.56)
CIE-LCHlch(13.68, 49.83, 309.30°)
OKLaboklab(27% 0.048 -0.1106)
OKLCHoklch(27% 0.121 293.4)
XYZxyz(3.0841, 1.6745, 9.8316)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C115A #3F5A11
analogous
#111A5A #2C115A #50115A
triadic
#2C115A #5A2C11 #115A2C
tetradic
#2C115A #5A111A #3F5A11 #115A50
square
#2C115A #5A111A #3F5A11 #115A50
split-complementary
#2C115A #5A5011 #1A5A11
monochromatic
#0D051A #130727 #2C115A #451B8D #5E24C1

Accessibility & contrast

On white

15.73
#2C115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C115A
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C115A#FFFFFF#000000##FFFFFF
##2C115A1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1E2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c115a;
/* rgb */ color: rgb(44, 17, 90);
/* oklch */ color: oklch(27.0% 0.121 293.4);
Tailwind
colors: {
  custom: {
    50: '#6b5289',
    500: '#2c115a',
    950: '#000000',
  },
}
SCSS
$custom: #2c115a;
$custom-light: #6b5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2c115a",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 262.192,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27004,
    "c": 0.12055,
    "h": 293.4
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#2C115A
secondary
#709334
accent
#EB3DAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C115A

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

Preview Lab → · Contrast checker → · Palette generator →

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