#2C135E#2C135E

#2C135E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.123 H 291.4°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2C135E
RGBrgb(44, 19, 94)
HSLhsl(260, 66%, 22%)
HSVhsv(260, 80%, 37%)
CMYKcmyk(53.2%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.45, 31.71, -39.97)
CIE-LCHlch(14.45, 51.02, 308.43°)
OKLaboklab(27.67% 0.0449 -0.1148)
OKLCHoklch(27.67% 0.123 291.4)
XYZxyz(3.2914, 1.8092, 10.7633)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135E #455E13
analogous
#13205E #2C135E #52135E
triadic
#2C135E #5E2C13 #135E2C
tetradic
#2C135E #5E1320 #455E13 #135E52
square
#2C135E #5E1320 #455E13 #135E52
split-complementary
#2C135E #5E5213 #205E13
monochromatic
#0C0519 #14092B #2C135E #441D91 #5C28C4

Accessibility & contrast

On white

15.42
#2C135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C135E
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135E#FFFFFF#000000##FFFFFF
##2C135E1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1B2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c135e;
/* rgb */ color: rgb(44, 19, 94);
/* oklch */ color: oklch(27.7% 0.123 291.4);
Tailwind
colors: {
  custom: {
    50: '#6b548c',
    500: '#2c135e',
    950: '#000000',
  },
}
SCSS
$custom: #2c135e;
$custom-light: #6b548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135e",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 260,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27673,
    "c": 0.12324,
    "h": 291.4
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C135E

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

Preview Lab → · Contrast checker → · Palette generator →

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