#2C1459#2C1459

#2C1459 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.116 H 293.1°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2C1459
RGBrgb(44, 20, 89)
HSLhsl(261, 63%, 21%)
HSVhsv(261, 78%, 35%)
CMYKcmyk(50.6%, 77.5%, 0%, 65.1%)
CIE-LABlab(14.16, 29.62, -37.10)
CIE-LCHlch(14.16, 47.47, 308.60°)
OKLaboklab(27.31% 0.0453 -0.1063)
OKLCHoklch(27.31% 0.116 293.1)
XYZxyz(3.0915, 1.7570, 9.6255)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1459 #415914
analogous
#141F59 #2C1459 #4F1459
triadic
#2C1459 #592C14 #14592C
tetradic
#2C1459 #59141F #415914 #14594F
square
#2C1459 #59141F #415914 #14594F
split-complementary
#2C1459 #594F14 #1F5914
monochromatic
#0C0619 #130927 #2C1459 #451F8B #5D2ABD

Accessibility & contrast

On white

15.54
#2C1459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C1459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1459
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1459#FFFFFF#000000##FFFFFF
##2C14591.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#1E2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1459;
/* rgb */ color: rgb(44, 20, 89);
/* oklch */ color: oklch(27.3% 0.116 293.1);
Tailwind
colors: {
  custom: {
    50: '#6a5489',
    500: '#2c1459',
    950: '#000000',
  },
}
SCSS
$custom: #2c1459;
$custom-light: #6a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1459",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 89
  },
  "hsl": {
    "h": 260.87,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27312,
    "c": 0.11557,
    "h": 293.1
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#2C1459
secondary
#729138
accent
#E641AD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1459

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

Preview Lab → · Contrast checker → · Palette generator →

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