#2C135D#2C135D

#2C135D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.122 H 291.8°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2C135D
RGBrgb(44, 19, 93)
HSLhsl(260, 66%, 22%)
HSVhsv(260, 80%, 36%)
CMYKcmyk(52.7%, 79.6%, 0%, 63.5%)
CIE-LABlab(14.35, 31.41, -39.47)
CIE-LCHlch(14.35, 50.44, 308.51°)
OKLaboklab(27.57% 0.0452 -0.1133)
OKLCHoklch(27.57% 0.122 291.8)
XYZxyz(3.2468, 1.7914, 10.5285)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135D #445D13
analogous
#131F5D #2C135D #51135D
triadic
#2C135D #5D2C13 #135D2C
tetradic
#2C135D #5D131F #445D13 #135D51
square
#2C135D #5D131F #445D13 #135D51
split-complementary
#2C135D #5D5113 #1F5D13
monochromatic
#0C0519 #14092A #2C135D #441D90 #5C28C3

Accessibility & contrast

On white

15.46
#2C135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C135D
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135D#FFFFFF#000000##FFFFFF
##2C135D1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#1C2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c135d;
/* rgb */ color: rgb(44, 19, 93);
/* oklch */ color: oklch(27.6% 0.122 291.8);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2c135d',
    950: '#000000',
  },
}
SCSS
$custom: #2c135d;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135d",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 260.27,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27572,
    "c": 0.12197,
    "h": 291.8
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#2C135D
secondary
#759537
accent
#E93FB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C135D

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

Preview Lab → · Contrast checker → · Palette generator →

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