#2C1380#2C1380

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

Color values

HEX#2C1380
RGBrgb(44, 19, 128)
HSLhsl(254, 74%, 29%)
HSVhsv(254, 85%, 50%)
CMYKcmyk(65.6%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.18, 42.06, -55.95)
CIE-LCHlch(18.18, 69.99, 306.93°)
OKLaboklab(31.38% 0.0336 -0.1614)
OKLCHoklch(31.38% 0.165 281.8)
XYZxyz(5.1666, 2.5593, 20.6396)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1380 #678013
analogous
#133180 #2C1380 #631380
triadic
#2C1380 #802C13 #13802C
tetradic
#2C1380 #801331 #678013 #138063
square
#2C1380 #801331 #678013 #138063
split-complementary
#2C1380 #806313 #318013
monochromatic
#09041B #1A0B4B #2C1380 #3E1BB5 #562DE0

Accessibility & contrast

On white

13.89
#2C1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1380
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1380#FFFFFF#000000##FFFFFF
##2C13801.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1380;
/* rgb */ color: rgb(44, 19, 128);
/* oklch */ color: oklch(31.4% 0.165 281.8);
Tailwind
colors: {
  custom: {
    50: '#7256a6',
    500: '#2c1380',
    950: '#000000',
  },
}
SCSS
$custom: #2c1380;
$custom-light: #7256a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1380",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 253.761,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31384,
    "c": 0.16488,
    "h": 281.8
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#2C1380
secondary
#99B539
accent
#F137C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1380

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

Preview Lab → · Contrast checker → · Palette generator →

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