#2C1A7C#2C1A7C

#2C1A7C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.154 H 281.6°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2C1A7C
RGBrgb(44, 26, 124)
HSLhsl(251, 65%, 29%)
HSVhsv(251, 79%, 49%)
CMYKcmyk(64.5%, 79%, 0%, 51.4%)
CIE-LABlab(18.92, 37.37, -52.18)
CIE-LCHlch(18.92, 64.18, 305.61°)
OKLaboklab(31.77% 0.0308 -0.1505)
OKLCHoklch(31.77% 0.154 281.6)
XYZxyz(5.0450, 2.7291, 19.3258)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A7C #6A7C1A
analogous
#1A397C #2C1A7C #5D1A7C
triadic
#2C1A7C #7C2C1A #1A7C2C
tetradic
#2C1A7C #7C1A39 #6A7C1A #1A7C5D
square
#2C1A7C #7C1A39 #6A7C1A #1A7C5D
split-complementary
#2C1A7C #7C5D1A #397C1A
monochromatic
#090519 #1A0F49 #2C1A7C #3E25AF #573BD6

Accessibility & contrast

On white

13.59
#2C1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A7C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A7C#FFFFFF#000000##FFFFFF
##2C1A7C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1a7c;
/* rgb */ color: rgb(44, 26, 124);
/* oklch */ color: oklch(31.8% 0.154 281.6);
Tailwind
colors: {
  custom: {
    50: '#7159a3',
    500: '#2c1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a7c;
$custom-light: #7159a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a7c",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 251.02,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.15365,
    "h": 281.6
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#2C1A7C
secondary
#9CB042
accent
#E840C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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