#2C136F#2C136F

#2C136F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.144 H 285.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2C136F
RGBrgb(44, 19, 111)
HSLhsl(256, 71%, 25%)
HSVhsv(256, 83%, 44%)
CMYKcmyk(60.4%, 82.9%, 0%, 56.5%)
CIE-LABlab(16.25, 36.92, -48.22)
CIE-LCHlch(16.25, 60.73, 307.44°)
OKLaboklab(29.47% 0.0396 -0.1389)
OKLCHoklch(29.47% 0.144 285.9)
XYZxyz(4.1400, 2.1487, 15.2324)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C136F #566F13
analogous
#13286F #2C136F #5A136F
triadic
#2C136F #6F2C13 #136F2C
tetradic
#2C136F #6F1328 #566F13 #136F5A
square
#2C136F #6F1328 #566F13 #136F5A
split-complementary
#2C136F #6F5A13 #286F13
monochromatic
#0A041A #170A3B #2C136F #411CA3 #5525D8

Accessibility & contrast

On white

14.69
#2C136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C136F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C136F#FFFFFF#000000##FFFFFF
##2C136F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#092E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c136f;
/* rgb */ color: rgb(44, 19, 111);
/* oklch */ color: oklch(29.5% 0.144 285.9);
Tailwind
colors: {
  custom: {
    50: '#6f5599',
    500: '#2c136f',
    950: '#000000',
  },
}
SCSS
$custom: #2c136f;
$custom-light: #6f5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2c136f",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 256.304,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29472,
    "c": 0.14443,
    "h": 285.9
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#2C136F
secondary
#88A638
accent
#EE3ABD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C136F

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

Preview Lab → · Contrast checker → · Palette generator →

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