#2C1274#2C1274

#2C1274 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.151 H 284.7°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2C1274
RGBrgb(44, 18, 116)
HSLhsl(256, 73%, 26%)
HSVhsv(256, 84%, 45%)
CMYKcmyk(62.1%, 84.5%, 0%, 54.5%)
CIE-LABlab(16.64, 38.91, -50.81)
CIE-LCHlch(16.64, 64.00, 307.44°)
OKLaboklab(29.91% 0.0385 -0.1464)
OKLCHoklch(29.91% 0.151 284.7)
XYZxyz(4.4064, 2.2288, 16.7176)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1274 #5A7412
analogous
#122974 #2C1274 #5D1274
triadic
#2C1274 #742C12 #12742C
tetradic
#2C1274 #741229 #5A7412 #12745D
square
#2C1274 #741229 #5A7412 #12745D
split-complementary
#2C1274 #745D12 #297412
monochromatic
#0A041A #180A3F #2C1274 #401AA9 #5523DD

Accessibility & contrast

On white

14.52
#2C1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1274
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1274#FFFFFF#000000##FFFFFF
##2C12741.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.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: #2c1274;
/* rgb */ color: rgb(44, 18, 116);
/* oklch */ color: oklch(29.9% 0.151 284.7);
Tailwind
colors: {
  custom: {
    50: '#70549d',
    500: '#2c1274',
    950: '#000000',
  },
}
SCSS
$custom: #2c1274;
$custom-light: #70549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1274",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 255.918,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29913,
    "c": 0.15141,
    "h": 284.7
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#2C1274
secondary
#8CAB37
accent
#F038BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1274

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

Preview Lab → · Contrast checker → · Palette generator →

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