#2C1748#2C1748

#2C1748 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.088 H 300.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2C1748
RGBrgb(44, 23, 72)
HSLhsl(266, 52%, 19%)
HSVhsv(266, 68%, 28%)
CMYKcmyk(38.9%, 68.1%, 0%, 71.8%)
CIE-LABlab(13.33, 22.57, -26.83)
CIE-LCHlch(13.33, 35.06, 310.08°)
OKLaboklab(26.25% 0.0442 -0.0762)
OKLCHoklch(26.25% 0.088 300.1)
XYZxyz(2.5145, 1.6161, 6.3091)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1748 #334817
analogous
#171A48 #2C1748 #441748
triadic
#2C1748 #482C17 #17482C
tetradic
#2C1748 #48171A #334817 #174844
square
#2C1748 #48171A #334817 #174844
split-complementary
#2C1748 #484417 #1A4817
monochromatic
#0E0717 #10081A #2C1748 #482676 #6535A5

Accessibility & contrast

On white

15.87
#2C1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1748
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1748#FFFFFF#000000##FFFFFF
##2C17481.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#062247
Tritanopia (blue-blind)
#26212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1748;
/* rgb */ color: rgb(44, 23, 72);
/* oklch */ color: oklch(26.3% 0.088 300.1);
Tailwind
colors: {
  custom: {
    50: '#68557b',
    500: '#2c1748',
    950: '#000000',
  },
}
SCSS
$custom: #2c1748;
$custom-light: #68557b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1748",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 265.714,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2625,
    "c": 0.08805,
    "h": 300.1
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#2C1748
secondary
#627F3C
accent
#DB4D9E
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1748

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

Preview Lab → · Contrast checker → · Palette generator →

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