#2C1B67#2C1B67

#2C1B67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.125 H 286.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1B67
RGBrgb(44, 27, 103)
HSLhsl(253, 58%, 25%)
HSVhsv(253, 74%, 40%)
CMYKcmyk(57.3%, 73.8%, 0%, 59.6%)
CIE-LABlab(16.98, 29.97, -41.79)
CIE-LCHlch(16.98, 51.43, 305.65°)
OKLaboklab(29.74% 0.0351 -0.1201)
OKLCHoklch(29.74% 0.125 286.3)
XYZxyz(3.8781, 2.2984, 13.0686)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B67 #56671B
analogous
#1B3067 #2C1B67 #521B67
triadic
#2C1B67 #672C1B #1B672C
tetradic
#2C1B67 #671B30 #56671B #1B6752
square
#2C1B67 #671B30 #56671B #1B6752
split-complementary
#2C1B67 #67521B #30671B
monochromatic
#0A0618 #170E37 #2C1B67 #412897 #5534C8

Accessibility & contrast

On white

14.39
#2C1B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B67
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B67#FFFFFF#000000##FFFFFF
##2C1B671.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#132F3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1b67;
/* rgb */ color: rgb(44, 27, 103);
/* oklch */ color: oklch(29.7% 0.125 286.3);
Tailwind
colors: {
  custom: {
    50: '#6c5993',
    500: '#2c1b67',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b67;
$custom-light: #6c5993;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b67",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 253.421,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29738,
    "c": 0.12517,
    "h": 286.3
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#2C1B67
secondary
#889C42
accent
#E246BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1B67

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

Preview Lab → · Contrast checker → · Palette generator →

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