#2C1B68#2C1B68

#2C1B68 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.127 H 286.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2C1B68
RGBrgb(44, 27, 104)
HSLhsl(253, 59%, 26%)
HSVhsv(253, 74%, 41%)
CMYKcmyk(57.7%, 74%, 0%, 59.2%)
CIE-LABlab(17.08, 30.30, -42.29)
CIE-LCHlch(17.08, 52.02, 305.62°)
OKLaboklab(29.84% 0.0349 -0.1216)
OKLCHoklch(29.84% 0.127 286)
XYZxyz(3.9286, 2.3186, 13.3345)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B68 #57681B
analogous
#1B3068 #2C1B68 #521B68
triadic
#2C1B68 #682C1B #1B682C
tetradic
#2C1B68 #681B30 #57681B #1B6852
square
#2C1B68 #681B30 #57681B #1B6852
split-complementary
#2C1B68 #68521B #30681B
monochromatic
#0A0618 #170E37 #2C1B68 #412899 #5534C9

Accessibility & contrast

On white

14.35
#2C1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B68
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B68#FFFFFF#000000##FFFFFF
##2C1B681.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#122F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1b68;
/* rgb */ color: rgb(44, 27, 104);
/* oklch */ color: oklch(29.8% 0.127 286.0);
Tailwind
colors: {
  custom: {
    50: '#6c5994',
    500: '#2c1b68',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b68;
$custom-light: #6c5994;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b68",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 253.247,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29836,
    "c": 0.12651,
    "h": 286
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2C1B68
secondary
#899D42
accent
#E246C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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