#2C1358#2C1358

#2C1358 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 293.8°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2C1358
RGBrgb(44, 19, 88)
HSLhsl(262, 64%, 21%)
HSVhsv(262, 78%, 35%)
CMYKcmyk(50%, 78.4%, 0%, 65.5%)
CIE-LABlab(13.86, 29.88, -36.91)
CIE-LCHlch(13.86, 47.49, 308.99°)
OKLaboklab(27.07% 0.0466 -0.1058)
OKLCHoklch(27.07% 0.116 293.8)
XYZxyz(3.0325, 1.7057, 9.4001)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1358 #3F5813
analogous
#131C58 #2C1358 #4E1358
triadic
#2C1358 #582C13 #13582C
tetradic
#2C1358 #58131C #3F5813 #13584E
square
#2C1358 #58131C #3F5813 #13584E
split-complementary
#2C1358 #584E13 #1C5813
monochromatic
#0D0519 #130826 #2C1358 #451E8A #5E29BD

Accessibility & contrast

On white

15.66
#2C1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1358
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1358#FFFFFF#000000##FFFFFF
##2C13581.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#1F2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1358;
/* rgb */ color: rgb(44, 19, 88);
/* oklch */ color: oklch(27.1% 0.116 293.8);
Tailwind
colors: {
  custom: {
    50: '#6a5388',
    500: '#2c1358',
    950: '#000000',
  },
}
SCSS
$custom: #2c1358;
$custom-light: #6a5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1358",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 261.739,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27073,
    "c": 0.11557,
    "h": 293.8
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#2C1358
secondary
#709037
accent
#E740AB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1358

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

Preview Lab → · Contrast checker → · Palette generator →

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