#2C0F48#2C0F48

#2C0F48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.101 H 302.9°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2C0F48
RGBrgb(44, 15, 72)
HSLhsl(271, 66%, 17%)
HSVhsv(271, 79%, 28%)
CMYKcmyk(38.9%, 79.2%, 0%, 71.8%)
CIE-LABlab(11.59, 27.35, -29.64)
CIE-LCHlch(11.59, 40.33, 312.70°)
OKLaboklab(25% 0.0547 -0.0844)
OKLCHoklch(25% 0.101 302.9)
XYZxyz(2.3790, 1.3450, 6.2639)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F48 #2B480F
analogous
#0F0F48 #2C0F48 #480F48
triadic
#2C0F48 #482C0F #0F482C
tetradic
#2C0F48 #480F0F #2B480F #0F4848
square
#2C0F48 #480F0F #2B480F #0F4848
split-complementary
#2C0F48 #48480F #0F480F
monochromatic
#0F0519 #0F0519 #2C0F48 #4B1A7B #6A24AD

Accessibility & contrast

On white

16.55
#2C0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C0F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F48
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F48#FFFFFF#000000##FFFFFF
##2C0F481.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#261D2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0f48;
/* rgb */ color: rgb(44, 15, 72);
/* oklch */ color: oklch(25.0% 0.101 302.9);
Tailwind
colors: {
  custom: {
    50: '#68507b',
    500: '#2c0f48',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f48;
$custom-light: #68507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f48",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 270.526,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24998,
    "c": 0.10057,
    "h": 302.9
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#2C0F48
secondary
#598230
accent
#E83F92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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