#2C1375#2C1375

#2C1375 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.152 H 284.3°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2C1375
RGBrgb(44, 19, 117)
HSLhsl(255, 72%, 27%)
HSVhsv(255, 84%, 46%)
CMYKcmyk(62.4%, 83.8%, 0%, 54.1%)
CIE-LABlab(16.92, 38.74, -51.00)
CIE-LCHlch(16.92, 64.05, 307.22°)
OKLaboklab(30.14% 0.0375 -0.147)
OKLCHoklch(30.14% 0.152 284.3)
XYZxyz(4.4815, 2.2853, 17.0311)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1375 #5C7513
analogous
#132B75 #2C1375 #5D1375
triadic
#2C1375 #752C13 #13752C
tetradic
#2C1375 #75132B #5C7513 #13755D
square
#2C1375 #75132B #5C7513 #13755D
split-complementary
#2C1375 #755D13 #2B7513
monochromatic
#0A041A #180A40 #2C1375 #401CAA #5527DC

Accessibility & contrast

On white

14.41
#2C1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1375
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1375#FFFFFF#000000##FFFFFF
##2C13751.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1375;
/* rgb */ color: rgb(44, 19, 117);
/* oklch */ color: oklch(30.1% 0.152 284.3);
Tailwind
colors: {
  custom: {
    50: '#70559e',
    500: '#2c1375',
    950: '#000000',
  },
}
SCSS
$custom: #2c1375;
$custom-light: #70559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1375",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 255.306,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30136,
    "c": 0.15173,
    "h": 284.3
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1375

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

Preview Lab → · Contrast checker → · Palette generator →

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