#2C1675#2C1675

#2C1675 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.149 H 283.8°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2C1675
RGBrgb(44, 22, 117)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 46%)
CMYKcmyk(62.4%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.43, 37.27, -50.16)
CIE-LCHlch(17.43, 62.49, 306.61°)
OKLaboklab(30.49% 0.0356 -0.1446)
OKLCHoklch(30.49% 0.149 283.8)
XYZxyz(4.5355, 2.3933, 17.0491)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1675 #5F7516
analogous
#162F75 #2C1675 #5C1675
triadic
#2C1675 #752C16 #16752C
tetradic
#2C1675 #75162F #5F7516 #16755C
square
#2C1675 #75162F #5F7516 #16755C
split-complementary
#2C1675 #755C16 #2F7516
monochromatic
#0A051A #190C41 #2C1675 #3F20A9 #552ED8

Accessibility & contrast

On white

14.20
#2C1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1675
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1675#FFFFFF#000000##FFFFFF
##2C16751.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.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: #2c1675;
/* rgb */ color: rgb(44, 22, 117);
/* oklch */ color: oklch(30.5% 0.149 283.8);
Tailwind
colors: {
  custom: {
    50: '#70579e',
    500: '#2c1675',
    950: '#000000',
  },
}
SCSS
$custom: #2c1675;
$custom-light: #70579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1675",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 253.895,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30491,
    "c": 0.14891,
    "h": 283.8
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#2C1675
secondary
#91AB3C
accent
#EB3DC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1675

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

Preview Lab → · Contrast checker → · Palette generator →

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