#2C1A73#2C1A73

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

Color values

HEX#2C1A73
RGBrgb(44, 26, 115)
HSLhsl(252, 63%, 28%)
HSVhsv(252, 77%, 45%)
CMYKcmyk(61.7%, 77.4%, 0%, 54.9%)
CIE-LABlab(17.97, 34.47, -47.98)
CIE-LCHlch(17.97, 59.08, 305.70°)
OKLaboklab(30.81% 0.0332 -0.1383)
OKLCHoklch(30.81% 0.142 283.5)
XYZxyz(4.5017, 2.5118, 16.4639)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A73 #61731A
analogous
#1A3473 #2C1A73 #591A73
triadic
#2C1A73 #732C1A #1A732C
tetradic
#2C1A73 #731A34 #61731A #1A7359
square
#2C1A73 #731A34 #61731A #1A7359
split-complementary
#2C1A73 #73591A #34731A
monochromatic
#0A0619 #190F41 #2C1A73 #3F25A5 #5536D2

Accessibility & contrast

On white

13.98
#2C1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1A73
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A73#FFFFFF#000000##FFFFFF
##2C1A731.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#013345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1a73;
/* rgb */ color: rgb(44, 26, 115);
/* oklch */ color: oklch(30.8% 0.142 283.5);
Tailwind
colors: {
  custom: {
    50: '#6f599c',
    500: '#2c1a73',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a73;
$custom-light: #6f599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a73",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 252.135,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30807,
    "c": 0.14218,
    "h": 283.5
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2C1A73
secondary
#93A841
accent
#E642C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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