#2C0948#2C0948

#2C0948 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.108 H 304.4°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2C0948
RGBrgb(44, 9, 72)
HSLhsl(273, 78%, 16%)
HSVhsv(273, 88%, 28%)
CMYKcmyk(38.9%, 87.5%, 0%, 71.8%)
CIE-LABlab(10.55, 30.31, -31.33)
CIE-LCHlch(10.55, 43.60, 314.05°)
OKLaboklab(24.27% 0.0611 -0.0893)
OKLCHoklch(24.27% 0.108 304.4)
XYZxyz(2.3058, 1.1987, 6.2395)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0948 #254809
analogous
#0C0948 #2C0948 #480944
triadic
#2C0948 #482C09 #09482C
tetradic
#2C0948 #480C09 #254809 #094448
square
#2C0948 #480C09 #254809 #094448
split-complementary
#2C0948 #444809 #09480C
monochromatic
#11031B #11031B #2C0948 #4D107E #6E17B5

Accessibility & contrast

On white

16.94
#2C0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2C0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0948
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0948#FFFFFF#000000##FFFFFF
##2C09481.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#261A29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c0948;
/* rgb */ color: rgb(44, 9, 72);
/* oklch */ color: oklch(24.3% 0.108 304.4);
Tailwind
colors: {
  custom: {
    50: '#694d7c',
    500: '#2c0948',
    950: '#000000',
  },
}
SCSS
$custom: #2c0948;
$custom-light: #694d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0948",
  "rgb": {
    "r": 44,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 273.333,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24266,
    "c": 0.10824,
    "h": 304.4
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#2C0948
secondary
#518527
accent
#F43489
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2C0948

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

Preview Lab → · Contrast checker → · Palette generator →

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