#2C1348#2C1348

#2C1348 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.095 H 301.7°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1348
RGBrgb(44, 19, 72)
HSLhsl(268, 58%, 18%)
HSVhsv(268, 74%, 28%)
CMYKcmyk(38.9%, 73.6%, 0%, 71.8%)
CIE-LABlab(12.41, 25.06, -28.31)
CIE-LCHlch(12.41, 37.81, 311.52°)
OKLaboklab(25.59% 0.0497 -0.0805)
OKLCHoklch(25.59% 0.095 301.7)
XYZxyz(2.4410, 1.4691, 6.2846)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1348 #2F4813
analogous
#131448 #2C1348 #461348
triadic
#2C1348 #482C13 #13482C
tetradic
#2C1348 #481314 #2F4813 #134846
square
#2C1348 #481314 #2F4813 #134846
split-complementary
#2C1348 #484613 #144813
monochromatic
#0F0618 #0F0618 #2C1348 #4A2078 #672DA9

Accessibility & contrast

On white

16.23
#2C1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C1348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1348
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1348#FFFFFF#000000##FFFFFF
##2C13481.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#261F2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c1348;
/* rgb */ color: rgb(44, 19, 72);
/* oklch */ color: oklch(25.6% 0.095 301.7);
Tailwind
colors: {
  custom: {
    50: '#68527b',
    500: '#2c1348',
    950: '#000000',
  },
}
SCSS
$custom: #2c1348;
$custom-light: #68527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1348",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 268.302,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25586,
    "c": 0.0946,
    "h": 301.7
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#2C1348
secondary
#5E8136
accent
#E14698
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1348

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

Preview Lab → · Contrast checker → · Palette generator →

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