#2C1670#2C1670

#2C1670 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.143 H 285.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2C1670
RGBrgb(44, 22, 112)
HSLhsl(255, 67%, 26%)
HSVhsv(255, 80%, 44%)
CMYKcmyk(60.7%, 80.4%, 0%, 56.1%)
CIE-LABlab(16.89, 35.70, -47.82)
CIE-LCHlch(16.89, 59.68, 306.75°)
OKLaboklab(29.95% 0.0371 -0.1378)
OKLCHoklch(29.95% 0.143 285.1)
XYZxyz(4.2494, 2.2789, 15.5420)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1670 #5A7016
analogous
#162D70 #2C1670 #591670
triadic
#2C1670 #702C16 #16702C
tetradic
#2C1670 #70162D #5A7016 #167059
square
#2C1670 #70162D #5A7016 #167059
split-complementary
#2C1670 #705916 #2D7016
monochromatic
#0A051A #180C3D #2C1670 #4020A3 #552BD5

Accessibility & contrast

On white

14.43
#2C1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1670
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1670#FFFFFF#000000##FFFFFF
##2C16701.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#073042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1670;
/* rgb */ color: rgb(44, 22, 112);
/* oklch */ color: oklch(29.9% 0.143 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f569a',
    500: '#2c1670',
    950: '#000000',
  },
}
SCSS
$custom: #2c1670;
$custom-light: #6f569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1670",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 254.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2995,
    "c": 0.14267,
    "h": 285.1
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#2C1670
secondary
#8CA63C
accent
#EA3EC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1670

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

Preview Lab → · Contrast checker → · Palette generator →

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