#2C135C#2C135C

#2C135C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.121 H 292.1°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2C135C
RGBrgb(44, 19, 92)
HSLhsl(261, 66%, 22%)
HSVhsv(261, 79%, 36%)
CMYKcmyk(52.2%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.25, 31.10, -38.96)
CIE-LCHlch(14.25, 49.85, 308.60°)
OKLaboklab(27.47% 0.0455 -0.1118)
OKLCHoklch(27.47% 0.121 292.1)
XYZxyz(3.2028, 1.7738, 10.2968)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135C #435C13
analogous
#131F5C #2C135C #51135C
triadic
#2C135C #5C2C13 #135C2C
tetradic
#2C135C #5C131F #435C13 #135C51
square
#2C135C #5C131F #435C13 #135C51
split-complementary
#2C135C #5C5113 #1F5C13
monochromatic
#0C0519 #140929 #2C135C #441D8F #5D28C1

Accessibility & contrast

On white

15.50
#2C135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C135C
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135C#FFFFFF#000000##FFFFFF
##2C135C1.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1D2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c135c;
/* rgb */ color: rgb(44, 19, 92);
/* oklch */ color: oklch(27.5% 0.121 292.1);
Tailwind
colors: {
  custom: {
    50: '#6b538b',
    500: '#2c135c',
    950: '#000000',
  },
}
SCSS
$custom: #2c135c;
$custom-light: #6b538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135c",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 260.548,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27471,
    "c": 0.12069,
    "h": 292.1
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#2C135C
secondary
#749437
accent
#E93FAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C135C

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

Preview Lab → · Contrast checker → · Palette generator →

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