#2C1E4E#2C1E4E

#2C1E4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.085 H 293.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2C1E4E
RGBrgb(44, 30, 78)
HSLhsl(258, 44%, 21%)
HSVhsv(258, 62%, 31%)
CMYKcmyk(43.6%, 61.5%, 0%, 69.4%)
CIE-LABlab(15.56, 19.80, -27.36)
CIE-LCHlch(15.56, 33.78, 305.89°)
OKLaboklab(28.03% 0.034 -0.0777)
OKLCHoklch(28.03% 0.085 293.6)
XYZxyz(2.8778, 2.0140, 7.4434)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E4E #404E1E
analogous
#1E284E #2C1E4E #441E4E
triadic
#2C1E4E #4E2C1E #1E4E2C
tetradic
#2C1E4E #4E1E28 #404E1E #1E4E44
square
#2C1E4E #4E1E28 #404E1E #1E4E44
split-complementary
#2C1E4E #4E441E #284E1E
monochromatic
#0C0916 #130D22 #2C1E4E #452F7A #5E40A6

Accessibility & contrast

On white

14.97
#2C1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E4E
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E4E#FFFFFF#000000##FFFFFF
##2C1E4E1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#0A264D
Tritanopia (blue-blind)
#232832
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1e4e;
/* rgb */ color: rgb(44, 30, 78);
/* oklch */ color: oklch(28.0% 0.085 293.6);
Tailwind
colors: {
  custom: {
    50: '#685a80',
    500: '#2c1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e4e;
$custom-light: #685a80;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e4e",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 257.5,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28034,
    "c": 0.08486,
    "h": 293.6
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#2C1E4E
secondary
#718345
accent
#D454AF
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2C1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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