#2C1265#2C1265

#2C1265 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.133 H 289.1°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2C1265
RGBrgb(44, 18, 101)
HSLhsl(259, 70%, 23%)
HSVhsv(259, 82%, 40%)
CMYKcmyk(56.4%, 82.2%, 0%, 60.4%)
CIE-LABlab(14.99, 34.37, -43.73)
CIE-LCHlch(14.99, 55.62, 308.17°)
OKLaboklab(28.27% 0.0437 -0.1258)
OKLCHoklch(28.27% 0.133 289.1)
XYZxyz(3.6033, 1.9075, 12.4877)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1265 #4B6512
analogous
#122165 #2C1265 #551265
triadic
#2C1265 #652C12 #12652C
tetradic
#2C1265 #651221 #4B6512 #126555
square
#2C1265 #651221 #4B6512 #126555
split-complementary
#2C1265 #655512 #216512
monochromatic
#0B051A #150931 #2C1265 #431B99 #5925CD

Accessibility & contrast

On white

15.20
#2C1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1265
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1265#FFFFFF#000000##FFFFFF
##2C12651.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#162A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1265;
/* rgb */ color: rgb(44, 18, 101);
/* oklch */ color: oklch(28.3% 0.133 289.1);
Tailwind
colors: {
  custom: {
    50: '#6d5392',
    500: '#2c1265',
    950: '#000000',
  },
}
SCSS
$custom: #2c1265;
$custom-light: #6d5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1265",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 258.795,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28273,
    "c": 0.13313,
    "h": 289.1
  },
  "luminance": 0.01908
}

Semantic roles & 50–950 ramp

primary
#2C1265
secondary
#7D9D36
accent
#ED3BB5
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1265

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

Preview Lab → · Contrast checker → · Palette generator →

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