#2C1269#2C1269

#2C1269 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 287.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2C1269
RGBrgb(44, 18, 105)
HSLhsl(258, 71%, 24%)
HSVhsv(258, 83%, 41%)
CMYKcmyk(58.1%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.42, 35.59, -45.66)
CIE-LCHlch(15.42, 57.89, 307.93°)
OKLaboklab(28.7% 0.0423 -0.1314)
OKLCHoklch(28.7% 0.138 287.9)
XYZxyz(3.8041, 1.9878, 13.5451)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1269 #4F6912
analogous
#122469 #2C1269 #581269
triadic
#2C1269 #692C12 #12692C
tetradic
#2C1269 #691224 #4F6912 #126958
square
#2C1269 #691224 #4F6912 #126958
split-complementary
#2C1269 #695812 #246912
monochromatic
#0B041A #160935 #2C1269 #421B9D #5824D1

Accessibility & contrast

On white

15.03
#2C1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1269
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1269#FFFFFF#000000##FFFFFF
##2C12691.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#122B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1269;
/* rgb */ color: rgb(44, 18, 105);
/* oklch */ color: oklch(28.7% 0.138 287.9);
Tailwind
colors: {
  custom: {
    50: '#6d5495',
    500: '#2c1269',
    950: '#000000',
  },
}
SCSS
$custom: #2c1269;
$custom-light: #6d5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1269",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 257.931,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28701,
    "c": 0.13806,
    "h": 287.9
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#2C1269
secondary
#81A136
accent
#ED3AB8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1269

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

Preview Lab → · Contrast checker → · Palette generator →

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