#2C1275#2C1275

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

Color values

HEX#2C1275
RGBrgb(44, 18, 117)
HSLhsl(256, 73%, 26%)
HSVhsv(256, 85%, 46%)
CMYKcmyk(62.4%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.76, 39.21, -51.27)
CIE-LCHlch(16.76, 64.54, 307.41°)
OKLaboklab(30.03% 0.0381 -0.1478)
OKLCHoklch(30.03% 0.153 284.5)
XYZxyz(4.4649, 2.2521, 17.0256)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1275 #5B7512
analogous
#122A75 #2C1275 #5E1275
triadic
#2C1275 #752C12 #12752C
tetradic
#2C1275 #75122A #5B7512 #12755E
square
#2C1275 #75122A #5B7512 #12755E
split-complementary
#2C1275 #755E12 #2A7512
monochromatic
#0A041B #180A40 #2C1275 #401AAA #5524DD

Accessibility & contrast

On white

14.48
#2C1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1275
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1275#FFFFFF#000000##FFFFFF
##2C12751.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1275;
/* rgb */ color: rgb(44, 18, 117);
/* oklch */ color: oklch(30.0% 0.153 284.5);
Tailwind
colors: {
  custom: {
    50: '#70559e',
    500: '#2c1275',
    950: '#000000',
  },
}
SCSS
$custom: #2c1275;
$custom-light: #70559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1275",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 255.758,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30025,
    "c": 0.15261,
    "h": 284.5
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2C1275
secondary
#8DAC37
accent
#F038C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1275

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

Preview Lab → · Contrast checker → · Palette generator →

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