#2C1775#2C1775

#2C1775 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.148 H 283.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2C1775
RGBrgb(44, 23, 117)
HSLhsl(253, 67%, 27%)
HSVhsv(253, 80%, 46%)
CMYKcmyk(62.4%, 80.3%, 0%, 54.1%)
CIE-LABlab(17.61, 36.75, -49.86)
CIE-LCHlch(17.61, 61.94, 306.39°)
OKLaboklab(30.62% 0.0349 -0.1437)
OKLCHoklch(30.62% 0.148 283.6)
XYZxyz(4.5550, 2.4323, 17.0556)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1775 #607517
analogous
#173175 #2C1775 #5B1775
triadic
#2C1775 #752C17 #17752C
tetradic
#2C1775 #751731 #607517 #17755B
square
#2C1775 #751731 #607517 #17755B
split-complementary
#2C1775 #755B17 #317517
monochromatic
#0A051A #190D42 #2C1775 #3F21A8 #5530D6

Accessibility & contrast

On white

14.13
#2C1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1775
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1775#FFFFFF#000000##FFFFFF
##2C17751.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1775;
/* rgb */ color: rgb(44, 23, 117);
/* oklch */ color: oklch(30.6% 0.148 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f579e',
    500: '#2c1775',
    950: '#000000',
  },
}
SCSS
$custom: #2c1775;
$custom-light: #6f579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1775",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 253.404,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30617,
    "c": 0.14791,
    "h": 283.6
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#2C1775
secondary
#92AA3D
accent
#EA3EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1775

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

Preview Lab → · Contrast checker → · Palette generator →

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