#2C1374#2C1374

#2C1374 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.151 H 284.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2C1374
RGBrgb(44, 19, 116)
HSLhsl(255, 72%, 26%)
HSVhsv(255, 84%, 45%)
CMYKcmyk(62.1%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.81, 38.44, -50.54)
CIE-LCHlch(16.81, 63.50, 307.25°)
OKLaboklab(30.02% 0.0379 -0.1457)
OKLCHoklch(30.02% 0.151 284.6)
XYZxyz(4.4230, 2.2619, 16.7231)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1374 #5B7413
analogous
#132B74 #2C1374 #5D1374
triadic
#2C1374 #742C13 #13742C
tetradic
#2C1374 #74132B #5B7413 #13745D
square
#2C1374 #74132B #5B7413 #13745D
split-complementary
#2C1374 #745D13 #2B7413
monochromatic
#0A041A #180A3F #2C1374 #401CA9 #5526DB

Accessibility & contrast

On white

14.46
#2C1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1374
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1374#FFFFFF#000000##FFFFFF
##2C13741.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1374;
/* rgb */ color: rgb(44, 19, 116);
/* oklch */ color: oklch(30.0% 0.151 284.6);
Tailwind
colors: {
  custom: {
    50: '#70559d',
    500: '#2c1374',
    950: '#000000',
  },
}
SCSS
$custom: #2c1374;
$custom-light: #70559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1374",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 255.464,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30024,
    "c": 0.15052,
    "h": 284.6
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#2C1374
secondary
#8DAA38
accent
#EF39C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1374

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

Preview Lab → · Contrast checker → · Palette generator →

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