#2C139F#2C139F

#2C139F is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.1% C 0.201 H 276.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2C139F
RGBrgb(44, 19, 159)
HSLhsl(251, 79%, 35%)
HSVhsv(251, 88%, 62%)
CMYKcmyk(72.3%, 88.1%, 0%, 37.6%)
CIE-LABlab(21.96, 51.11, -69.00)
CIE-LCHlch(21.96, 85.87, 306.53°)
OKLaboklab(35.06% 0.0227 -0.1993)
OKLCHoklch(35.06% 0.201 276.5)
XYZxyz(7.5275, 3.5037, 33.0737)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C139F #869F13
analogous
#13409F #2C139F #72139F
triadic
#2C139F #9F2C13 #139F2C
tetradic
#2C139F #9F1340 #869F13 #139F72
square
#2C139F #9F1340 #869F13 #139F72
split-complementary
#2C139F #9F7213 #409F13
monochromatic
#0E0632 #1D0C68 #2C139F #3B1AD6 #6144E9

Accessibility & contrast

On white

12.35
#2C139F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C139F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C139F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C139F#FFFFFF#000000##FFFFFF
##2C139F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c139f;
/* rgb */ color: rgb(44, 19, 159);
/* oklch */ color: oklch(35.1% 0.201 276.5);
Tailwind
colors: {
  custom: {
    50: '#7959bd',
    500: '#2c139f',
    950: '#000000',
  },
}
SCSS
$custom: #2c139f;
$custom-light: #7959bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c139f",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 159
  },
  "hsl": {
    "h": 250.714,
    "s": 78.652,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35056,
    "c": 0.20059,
    "h": 276.5
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#2C139F
secondary
#B1C945
accent
#F533D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C139F

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

Preview Lab → · Contrast checker → · Palette generator →

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