#2C1794#2C1794

#2C1794 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.185 H 277.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2C1794
RGBrgb(44, 23, 148)
HSLhsl(250, 73%, 34%)
HSVhsv(250, 84%, 58%)
CMYKcmyk(70.3%, 84.5%, 0%, 42%)
CIE-LABlab(21.15, 46.28, -63.57)
CIE-LCHlch(21.15, 78.63, 306.06°)
OKLaboklab(34.12% 0.025 -0.1836)
OKLCHoklch(34.12% 0.185 277.7)
XYZxyz(6.6887, 3.2858, 28.2930)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1794 #7F9417
analogous
#174094 #2C1794 #6A1794
triadic
#2C1794 #942C17 #17942C
tetradic
#2C1794 #941740 #7F9417 #17946A
square
#2C1794 #941740 #7F9417 #17946A
split-complementary
#2C1794 #946A17 #409417
monochromatic
#0D072A #1C0F5F #2C1794 #3C1FC9 #5E44E2

Accessibility & contrast

On white

12.67
#2C1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1794
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1794#FFFFFF#000000##FFFFFF
##2C17941.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1794;
/* rgb */ color: rgb(44, 23, 148);
/* oklch */ color: oklch(34.1% 0.185 277.7);
Tailwind
colors: {
  custom: {
    50: '#7659b5',
    500: '#2c1794',
    950: '#000000',
  },
}
SCSS
$custom: #2c1794;
$custom-light: #7659b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1794",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 250.08,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.18532,
    "h": 277.7
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#2C1794
secondary
#ADC344
accent
#F038D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1794

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

Preview Lab → · Contrast checker → · Palette generator →

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