#2C138A#2C138A

#2C138A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.177 H 279.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2C138A
RGBrgb(44, 19, 138)
HSLhsl(253, 76%, 31%)
HSVhsv(253, 86%, 54%)
CMYKcmyk(68.1%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.37, 45.03, -60.29)
CIE-LCHlch(19.37, 75.25, 306.75°)
OKLaboklab(32.55% 0.03 -0.174)
OKLCHoklch(32.55% 0.177 279.8)
XYZxyz(5.8576, 2.8357, 24.2785)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C138A #718A13
analogous
#13358A #2C138A #67138A
triadic
#2C138A #8A2C13 #138A2C
tetradic
#2C138A #8A1335 #718A13 #138A67
square
#2C138A #8A1335 #718A13 #138A67
split-complementary
#2C138A #8A6713 #358A13
monochromatic
#0A041E #1B0C54 #2C138A #3D1AC0 #5934E3

Accessibility & contrast

On white

13.40
#2C138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C138A
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C138A#FFFFFF#000000##FFFFFF
##2C138A1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c138a;
/* rgb */ color: rgb(44, 19, 138);
/* oklch */ color: oklch(32.5% 0.177 279.8);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2c138a',
    950: '#000000',
  },
}
SCSS
$custom: #2c138a;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c138a",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 252.605,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32547,
    "c": 0.17661,
    "h": 279.8
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#2C138A
secondary
#A3BE3A
accent
#F235CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C138A

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

Preview Lab → · Contrast checker → · Palette generator →

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