#2C147F#2C147F

#2C147F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.163 H 281.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2C147F
RGBrgb(44, 20, 127)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(65.4%, 84.3%, 0%, 50.2%)
CIE-LABlab(18.22, 41.31, -55.25)
CIE-LCHlch(18.22, 68.99, 306.78°)
OKLaboklab(31.37% 0.0334 -0.1594)
OKLCHoklch(31.37% 0.163 281.8)
XYZxyz(5.1184, 2.5677, 20.3005)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C147F #677F14
analogous
#14327F #2C147F #62147F
triadic
#2C147F #7F2C14 #147F2C
tetradic
#2C147F #7F1432 #677F14 #147F62
square
#2C147F #7F1432 #677F14 #147F62
split-complementary
#2C147F #7F6214 #327F14
monochromatic
#09041A #1A0C4A #2C147F #3E1CB4 #562FDE

Accessibility & contrast

On white

13.87
#2C147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C147F
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C147F#FFFFFF#000000##FFFFFF
##2C147F1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c147f;
/* rgb */ color: rgb(44, 20, 127);
/* oklch */ color: oklch(31.4% 0.163 281.8);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2c147f',
    950: '#000000',
  },
}
SCSS
$custom: #2c147f;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c147f",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 253.458,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31375,
    "c": 0.16288,
    "h": 281.8
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#2C147F
secondary
#99B43B
accent
#EF38C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C147F

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

Preview Lab → · Contrast checker → · Palette generator →

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