#2C1777#2C1777

#2C1777 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.150 H 283.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1777
RGBrgb(44, 23, 119)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 47%)
CMYKcmyk(63%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.83, 37.37, -50.79)
CIE-LCHlch(17.83, 63.06, 306.35°)
OKLaboklab(30.83% 0.0343 -0.1464)
OKLCHoklch(30.83% 0.15 283.2)
XYZxyz(4.6738, 2.4799, 17.6816)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1777 #627717
analogous
#173277 #2C1777 #5C1777
triadic
#2C1777 #772C17 #17772C
tetradic
#2C1777 #771732 #627717 #17775C
square
#2C1777 #771732 #627717 #17775C
split-complementary
#2C1777 #775C17 #327717
monochromatic
#09051A #190D44 #2C1777 #3F21AA #5631D7

Accessibility & contrast

On white

14.04
#2C1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1777
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1777#FFFFFF#000000##FFFFFF
##2C17771.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1777;
/* rgb */ color: rgb(44, 23, 119);
/* oklch */ color: oklch(30.8% 0.150 283.2);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2c1777',
    950: '#000000',
  },
}
SCSS
$custom: #2c1777;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1777",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 253.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30834,
    "c": 0.1504,
    "h": 283.2
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#2C1777
secondary
#94AC3E
accent
#EA3DC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1777

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

Preview Lab → · Contrast checker → · Palette generator →

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