#2C136C#2C136C

#2C136C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.141 H 286.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2C136C
RGBrgb(44, 19, 108)
HSLhsl(257, 70%, 25%)
HSVhsv(257, 82%, 42%)
CMYKcmyk(59.3%, 82.4%, 0%, 57.6%)
CIE-LABlab(15.92, 36.00, -46.81)
CIE-LCHlch(15.92, 59.05, 307.57°)
OKLaboklab(29.15% 0.0406 -0.1348)
OKLCHoklch(29.15% 0.141 286.8)
XYZxyz(3.9775, 2.0837, 14.3771)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C136C #536C13
analogous
#13266C #2C136C #59136C
triadic
#2C136C #6C2C13 #136C2C
tetradic
#2C136C #6C1326 #536C13 #136C59
square
#2C136C #6C1326 #536C13 #136C59
split-complementary
#2C136C #6C5913 #266C13
monochromatic
#0B051A #170A38 #2C136C #411CA0 #5625D4

Accessibility & contrast

On white

14.82
#2C136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C136C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C136C
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C136C#FFFFFF#000000##FFFFFF
##2C136C1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#0E2D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c136c;
/* rgb */ color: rgb(44, 19, 108);
/* oklch */ color: oklch(29.1% 0.141 286.8);
Tailwind
colors: {
  custom: {
    50: '#6e5497',
    500: '#2c136c',
    950: '#000000',
  },
}
SCSS
$custom: #2c136c;
$custom-light: #6e5497;
$custom-dark: #000000;
JSON
{
  "hex": "#2c136c",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 256.854,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29145,
    "c": 0.14075,
    "h": 286.8
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2C136C
secondary
#85A338
accent
#ED3BBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C136C

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

Preview Lab → · Contrast checker → · Palette generator →

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