#2C135F#2C135F

#2C135F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.125 H 291.0°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2C135F
RGBrgb(44, 19, 95)
HSLhsl(260, 67%, 22%)
HSVhsv(260, 80%, 37%)
CMYKcmyk(53.7%, 80%, 0%, 62.7%)
CIE-LABlab(14.55, 32.02, -40.47)
CIE-LCHlch(14.55, 51.61, 308.35°)
OKLaboklab(27.78% 0.0447 -0.1162)
OKLCHoklch(27.78% 0.125 291)
XYZxyz(3.3365, 1.8273, 11.0012)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135F #465F13
analogous
#13205F #2C135F #52135F
triadic
#2C135F #5F2C13 #135F2C
tetradic
#2C135F #5F1320 #465F13 #135F52
square
#2C135F #5F1320 #465F13 #135F52
split-complementary
#2C135F #5F5213 #205F13
monochromatic
#0C051A #14092C #2C135F #441D92 #5B27C5

Accessibility & contrast

On white

15.38
#2C135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C135F
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135F#FFFFFF#000000##FFFFFF
##2C135F1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1B2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c135f;
/* rgb */ color: rgb(44, 19, 95);
/* oklch */ color: oklch(27.8% 0.125 291.0);
Tailwind
colors: {
  custom: {
    50: '#6c548d',
    500: '#2c135f',
    950: '#000000',
  },
}
SCSS
$custom: #2c135f;
$custom-light: #6c548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135f",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 259.737,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27775,
    "c": 0.12451,
    "h": 291
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#2C135F
secondary
#779737
accent
#EA3EB1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C135F

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

Preview Lab → · Contrast checker → · Palette generator →

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