#2C1975#2C1975

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

Color values

HEX#2C1975
RGBrgb(44, 25, 117)
HSLhsl(252, 65%, 28%)
HSVhsv(252, 79%, 46%)
CMYKcmyk(62.4%, 78.6%, 0%, 54.1%)
CIE-LABlab(17.99, 35.67, -49.25)
CIE-LCHlch(17.99, 60.81, 305.92°)
OKLaboklab(30.88% 0.0334 -0.1419)
OKLCHoklch(30.88% 0.146 283.2)
XYZxyz(4.5962, 2.5148, 17.0694)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1975 #627519
analogous
#193475 #2C1975 #5A1975
triadic
#2C1975 #752C19 #19752C
tetradic
#2C1975 #751934 #627519 #19755A
square
#2C1975 #751934 #627519 #19755A
split-complementary
#2C1975 #755A19 #347519
monochromatic
#090519 #190E43 #2C1975 #3F24A7 #5535D4

Accessibility & contrast

On white

13.97
#2C1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1975
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1975#FFFFFF#000000##FFFFFF
##2C19751.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1975;
/* rgb */ color: rgb(44, 25, 117);
/* oklch */ color: oklch(30.9% 0.146 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f589e',
    500: '#2c1975',
    950: '#000000',
  },
}
SCSS
$custom: #2c1975;
$custom-light: #6f589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1975",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 252.391,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3088,
    "c": 0.14583,
    "h": 283.2
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#2C1975
secondary
#94AA40
accent
#E840C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1975

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

Preview Lab → · Contrast checker → · Palette generator →

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