#2C135A#2C135A

#2C135A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.118 H 292.9°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2C135A
RGBrgb(44, 19, 90)
HSLhsl(261, 65%, 21%)
HSVhsv(261, 79%, 35%)
CMYKcmyk(51.1%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.05, 30.49, -37.94)
CIE-LCHlch(14.05, 48.67, 308.78°)
OKLaboklab(27.27% 0.046 -0.1088)
OKLCHoklch(27.27% 0.118 292.9)
XYZxyz(3.1165, 1.7393, 9.8424)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135A #415A13
analogous
#131E5A #2C135A #50135A
triadic
#2C135A #5A2C13 #135A2C
tetradic
#2C135A #5A131E #415A13 #135A50
square
#2C135A #5A131E #415A13 #135A50
split-complementary
#2C135A #5A5013 #1E5A13
monochromatic
#0C0519 #130827 #2C135A #451E8D #5D28BF

Accessibility & contrast

On white

15.58
#2C135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C135A
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135A#FFFFFF#000000##FFFFFF
##2C135A1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1E2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c135a;
/* rgb */ color: rgb(44, 19, 90);
/* oklch */ color: oklch(27.3% 0.118 292.9);
Tailwind
colors: {
  custom: {
    50: '#6b5389',
    500: '#2c135a',
    950: '#000000',
  },
}
SCSS
$custom: #2c135a;
$custom-light: #6b5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135a",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 261.127,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27271,
    "c": 0.11814,
    "h": 292.9
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#2C135A
secondary
#729237
accent
#E840AD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C135A

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

Preview Lab → · Contrast checker → · Palette generator →

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