#2C1249#2C1249

#2C1249 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.097 H 301.4°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1249
RGBrgb(44, 18, 73)
HSLhsl(268, 60%, 18%)
HSVhsv(268, 75%, 29%)
CMYKcmyk(39.7%, 75.3%, 0%, 71.4%)
CIE-LABlab(12.28, 25.95, -29.21)
CIE-LCHlch(12.28, 39.07, 311.61°)
OKLaboklab(25.52% 0.0508 -0.0831)
OKLCHoklch(25.52% 0.097 301.4)
XYZxyz(2.4573, 1.4491, 6.4523)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1249 #2F4912
analogous
#121349 #2C1249 #471249
triadic
#2C1249 #492C12 #12492C
tetradic
#2C1249 #491213 #2F4912 #124947
square
#2C1249 #491213 #2F4912 #124947
split-complementary
#2C1249 #494712 #134912
monochromatic
#0F0619 #0F0619 #2C1249 #4A1E7A #672AAB

Accessibility & contrast

On white

16.28
#2C1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C1249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1249
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1249#FFFFFF#000000##FFFFFF
##2C12491.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#261F2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c1249;
/* rgb */ color: rgb(44, 18, 73);
/* oklch */ color: oklch(25.5% 0.097 301.4);
Tailwind
colors: {
  custom: {
    50: '#68527c',
    500: '#2c1249',
    950: '#000000',
  },
}
SCSS
$custom: #2c1249;
$custom-light: #68527c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1249",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 268.364,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2552,
    "c": 0.09746,
    "h": 301.4
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#2C1249
secondary
#5E8235
accent
#E44498
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1249

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

Preview Lab → · Contrast checker → · Palette generator →

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