#2C1B71#2C1B71

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

Color values

HEX#2C1B71
RGBrgb(44, 27, 113)
HSLhsl(252, 61%, 27%)
HSVhsv(252, 76%, 44%)
CMYKcmyk(61.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.97, 33.25, -46.69)
CIE-LCHlch(17.97, 57.32, 305.46°)
OKLaboklab(30.74% 0.0329 -0.1345)
OKLCHoklch(30.74% 0.138 283.7)
XYZxyz(4.4104, 2.5113, 15.8719)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B71 #60711B
analogous
#1B3571 #2C1B71 #571B71
triadic
#2C1B71 #712C1B #1B712C
tetradic
#2C1B71 #711B35 #60711B #1B7157
square
#2C1B71 #711B35 #60711B #1B7157
split-complementary
#2C1B71 #71571B #35711B
monochromatic
#0A0619 #190F40 #2C1B71 #3F27A2 #5537CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1B71#FFFFFF#000000##FFFFFF
##2C1B711.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)
#002F74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#043344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1b71;
/* rgb */ color: rgb(44, 27, 113);
/* oklch */ color: oklch(30.7% 0.138 283.7);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2c1b71',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b71;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b71",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 251.86,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30744,
    "c": 0.13845,
    "h": 283.7
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2C1B71
secondary
#92A642
accent
#E543C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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