#2C1255#2C1255

#2C1255 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.113 H 295.3°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1255
RGBrgb(44, 18, 85)
HSLhsl(263, 65%, 20%)
HSVhsv(263, 79%, 33%)
CMYKcmyk(48.2%, 78.8%, 0%, 66.7%)
CIE-LABlab(13.38, 29.52, -35.67)
CIE-LCHlch(13.38, 46.30, 309.61°)
OKLaboklab(26.64% 0.0483 -0.1021)
OKLCHoklch(26.64% 0.113 295.3)
XYZxyz(2.8943, 1.6239, 8.7535)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1255 #3B5512
analogous
#121955 #2C1255 #4E1255
triadic
#2C1255 #552C12 #12552C
tetradic
#2C1255 #551219 #3B5512 #12554E
square
#2C1255 #551219 #3B5512 #12554E
split-complementary
#2C1255 #554E12 #195512
monochromatic
#0D0519 #120722 #2C1255 #461D88 #6027BA

Accessibility & contrast

On white

15.85
#2C1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1255
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1255#FFFFFF#000000##FFFFFF
##2C12551.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#212332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1255;
/* rgb */ color: rgb(44, 18, 85);
/* oklch */ color: oklch(26.6% 0.113 295.3);
Tailwind
colors: {
  custom: {
    50: '#6a5286',
    500: '#2c1255',
    950: '#000000',
  },
}
SCSS
$custom: #2c1255;
$custom-light: #6a5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1255",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 263.284,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2664,
    "c": 0.113,
    "h": 295.3
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#2C1255
secondary
#6B8E35
accent
#E840A7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1255

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

Preview Lab → · Contrast checker → · Palette generator →

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