#2C1961#2C1961

#2C1961 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.120 H 288.7°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2C1961
RGBrgb(44, 25, 97)
HSLhsl(256, 59%, 24%)
HSVhsv(256, 74%, 38%)
CMYKcmyk(54.6%, 74.2%, 0%, 62%)
CIE-LABlab(15.97, 29.23, -39.48)
CIE-LCHlch(15.97, 49.12, 306.51°)
OKLaboklab(28.84% 0.0383 -0.1134)
OKLCHoklch(28.84% 0.12 288.7)
XYZxyz(3.5434, 2.0936, 11.5244)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1961 #4E6119
analogous
#192A61 #2C1961 #501961
triadic
#2C1961 #612C19 #19612C
tetradic
#2C1961 #61192A #4E6119 #196150
square
#2C1961 #61192A #4E6119 #196150
split-complementary
#2C1961 #615019 #2A6119
monochromatic
#0B0618 #160C30 #2C1961 #422692 #5832C2

Accessibility & contrast

On white

14.80
#2C1961 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C1961 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1961
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1961#FFFFFF#000000##FFFFFF
##2C19611.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#192C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1961;
/* rgb */ color: rgb(44, 25, 97);
/* oklch */ color: oklch(28.8% 0.120 288.7);
Tailwind
colors: {
  custom: {
    50: '#6b578f',
    500: '#2c1961',
    950: '#000000',
  },
}
SCSS
$custom: #2c1961;
$custom-light: #6b578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1961",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 97
  },
  "hsl": {
    "h": 255.833,
    "s": 59.016,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2884,
    "c": 0.11966,
    "h": 288.7
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#2C1961
secondary
#80973F
accent
#E246B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1961

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

Preview Lab → · Contrast checker → · Palette generator →

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