#2C1964#2C1964

#2C1964 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.1% C 0.124 H 287.7°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2C1964
RGBrgb(44, 25, 100)
HSLhsl(255, 60%, 25%)
HSVhsv(255, 75%, 39%)
CMYKcmyk(56%, 75%, 0%, 60.8%)
CIE-LABlab(16.26, 30.19, -41.00)
CIE-LCHlch(16.26, 50.92, 306.37°)
OKLaboklab(29.13% 0.0377 -0.1178)
OKLCHoklch(29.13% 0.124 287.7)
XYZxyz(3.6859, 2.1507, 12.2750)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1964 #516419
analogous
#192C64 #2C1964 #521964
triadic
#2C1964 #642C19 #19642C
tetradic
#2C1964 #64192C #516419 #196452
square
#2C1964 #64192C #516419 #196452
split-complementary
#2C1964 #645219 #2C6419
monochromatic
#0B0618 #160D33 #2C1964 #422595 #5731C6

Accessibility & contrast

On white

14.68
#2C1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1964
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1964#FFFFFF#000000##FFFFFF
##2C19641.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#162D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1964;
/* rgb */ color: rgb(44, 25, 100);
/* oklch */ color: oklch(29.1% 0.124 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5791',
    500: '#2c1964',
    950: '#000000',
  },
}
SCSS
$custom: #2c1964;
$custom-light: #6c5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1964",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 255.2,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29134,
    "c": 0.12369,
    "h": 287.7
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#2C1964
secondary
#839A3F
accent
#E345BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1964

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

Preview Lab → · Contrast checker → · Palette generator →

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