#2C1250#2C1250

#2C1250 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.107 H 297.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1250
RGBrgb(44, 18, 80)
HSLhsl(265, 63%, 19%)
HSVhsv(265, 78%, 31%)
CMYKcmyk(45%, 77.5%, 0%, 68.6%)
CIE-LABlab(12.90, 28.02, -33.03)
CIE-LCHlch(12.90, 43.31, 310.31°)
OKLaboklab(26.16% 0.0495 -0.0944)
OKLCHoklch(26.16% 0.107 297.7)
XYZxyz(2.7026, 1.5472, 7.7441)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1250 #365012
analogous
#121750 #2C1250 #4B1250
triadic
#2C1250 #502C12 #12502C
tetradic
#2C1250 #501217 #365012 #12504B
square
#2C1250 #501217 #365012 #12504B
split-complementary
#2C1250 #504B12 #175012
monochromatic
#0E0619 #11071E #2C1250 #471D82 #6328B4

Accessibility & contrast

On white

16.04
#2C1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1250
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1250#FFFFFF#000000##FFFFFF
##2C12501.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#23212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1250;
/* rgb */ color: rgb(44, 18, 80);
/* oklch */ color: oklch(26.2% 0.107 297.7);
Tailwind
colors: {
  custom: {
    50: '#695282',
    500: '#2c1250',
    950: '#000000',
  },
}
SCSS
$custom: #2c1250;
$custom-light: #695282;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1250",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 265.161,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26161,
    "c": 0.10657,
    "h": 297.7
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#2C1250
secondary
#668935
accent
#E641A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1250

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

Preview Lab → · Contrast checker → · Palette generator →

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