#2C1950#2C1950

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

Color values

HEX#2C1950
RGBrgb(44, 25, 80)
HSLhsl(261, 52%, 21%)
HSVhsv(261, 69%, 31%)
CMYKcmyk(45%, 68.8%, 0%, 68.6%)
CIE-LABlab(14.46, 23.77, -30.51)
CIE-LCHlch(14.46, 38.67, 307.92°)
OKLaboklab(27.28% 0.0409 -0.087)
OKLCHoklch(27.28% 0.096 295.2)
XYZxyz(2.8339, 1.8099, 7.7879)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1950 #3D5019
analogous
#192150 #2C1950 #471950
triadic
#2C1950 #502C19 #19502C
tetradic
#2C1950 #501921 #3D5019 #195047
square
#2C1950 #501921 #3D5019 #195047
split-complementary
#2C1950 #504719 #215019
monochromatic
#0D0717 #120A21 #2C1950 #46287F #5F36AD

Accessibility & contrast

On white

15.42
#2C1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1950
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1950#FFFFFF#000000##FFFFFF
##2C19501.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#232531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1950;
/* rgb */ color: rgb(44, 25, 80);
/* oklch */ color: oklch(27.3% 0.096 295.2);
Tailwind
colors: {
  custom: {
    50: '#695781',
    500: '#2c1950',
    950: '#000000',
  },
}
SCSS
$custom: #2c1950;
$custom-light: #695781;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1950",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 260.727,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27276,
    "c": 0.09612,
    "h": 295.2
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#2C1950
secondary
#6E863E
accent
#DC4CAA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C1950

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

Preview Lab → · Contrast checker → · Palette generator →

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