#2C136E#2C136E

#2C136E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.143 H 286.2°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2C136E
RGBrgb(44, 19, 110)
HSLhsl(256, 71%, 25%)
HSVhsv(256, 83%, 43%)
CMYKcmyk(60%, 82.7%, 0%, 56.9%)
CIE-LABlab(16.14, 36.61, -47.75)
CIE-LCHlch(16.14, 60.17, 307.48°)
OKLaboklab(29.36% 0.0399 -0.1375)
OKLCHoklch(29.36% 0.143 286.2)
XYZxyz(4.0852, 2.1268, 14.9441)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C136E #556E13
analogous
#13276E #2C136E #5A136E
triadic
#2C136E #6E2C13 #136E2C
tetradic
#2C136E #6E1327 #556E13 #136E5A
square
#2C136E #6E1327 #556E13 #136E5A
split-complementary
#2C136E #6E5A13 #276E13
monochromatic
#0A051A #170A3A #2C136E #411CA2 #5625D6

Accessibility & contrast

On white

14.73
#2C136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C136E
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C136E#FFFFFF#000000##FFFFFF
##2C136E1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#0B2E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c136e;
/* rgb */ color: rgb(44, 19, 110);
/* oklch */ color: oklch(29.4% 0.143 286.2);
Tailwind
colors: {
  custom: {
    50: '#6e5599',
    500: '#2c136e',
    950: '#000000',
  },
}
SCSS
$custom: #2c136e;
$custom-light: #6e5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2c136e",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 256.484,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29363,
    "c": 0.1432,
    "h": 286.2
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#2C136E
secondary
#87A538
accent
#ED3ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C136E

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

Preview Lab → · Contrast checker → · Palette generator →

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