#2C0748#2C0748

#2C0748 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.111 H 304.8°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#2C0748
RGBrgb(44, 7, 72)
HSLhsl(274, 82%, 15%)
HSVhsv(274, 90%, 28%)
CMYKcmyk(38.9%, 90.3%, 0%, 71.8%)
CIE-LABlab(10.22, 31.26, -31.86)
CIE-LCHlch(10.22, 44.63, 314.45°)
OKLaboklab(24.04% 0.0632 -0.0909)
OKLCHoklch(24.04% 0.111 304.8)
XYZxyz(2.2841, 1.1553, 6.2323)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0748 #234807
analogous
#0C0748 #2C0748 #480743
triadic
#2C0748 #482C07 #07482C
tetradic
#2C0748 #480C07 #234807 #074348
square
#2C0748 #480C07 #234807 #074348
split-complementary
#2C0748 #434807 #07480C
monochromatic
#11031C #11031C #2C0748 #4E0C80 #7012B8

Accessibility & contrast

On white

17.06
#2C0748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2C0748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0748
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0748#FFFFFF#000000##FFFFFF
##2C07481.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#271928
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c0748;
/* rgb */ color: rgb(44, 7, 72);
/* oklch */ color: oklch(24.0% 0.111 304.8);
Tailwind
colors: {
  custom: {
    50: '#694c7c',
    500: '#2c0748',
    950: '#000000',
  },
}
SCSS
$custom: #2c0748;
$custom-light: #694c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0748",
  "rgb": {
    "r": 44,
    "g": 7,
    "b": 72
  },
  "hsl": {
    "h": 274.154,
    "s": 82.278,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2404,
    "c": 0.11067,
    "h": 304.8
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#2C0748
secondary
#4F8724
accent
#F92F86
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2C0748

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

Preview Lab → · Contrast checker → · Palette generator →

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