#2C1B74#2C1B74

#2C1B74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.142 H 283.1°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1B74
RGBrgb(44, 27, 116)
HSLhsl(251, 62%, 28%)
HSVhsv(251, 77%, 45%)
CMYKcmyk(62.1%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.28, 34.23, -48.12)
CIE-LCHlch(18.28, 59.05, 305.42°)
OKLaboklab(31.05% 0.0322 -0.1387)
OKLCHoklch(31.05% 0.142 283.1)
XYZxyz(4.5820, 2.5800, 16.7761)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B74 #63741B
analogous
#1B3674 #2C1B74 #581B74
triadic
#2C1B74 #742C1B #1B742C
tetradic
#2C1B74 #741B36 #63741B #1B7458
square
#2C1B74 #741B36 #63741B #1B7458
split-complementary
#2C1B74 #74581B #36741B
monochromatic
#090619 #190F42 #2C1B74 #3F27A6 #5639D1

Accessibility & contrast

On white

13.85
#2C1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B74
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B74#FFFFFF#000000##FFFFFF
##2C1B741.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1b74;
/* rgb */ color: rgb(44, 27, 116);
/* oklch */ color: oklch(31.1% 0.142 283.1);
Tailwind
colors: {
  custom: {
    50: '#6f599d',
    500: '#2c1b74',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b74;
$custom-light: #6f599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b74",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 251.461,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31054,
    "c": 0.14236,
    "h": 283.1
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#2C1B74
secondary
#95A942
accent
#E542C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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