#2C0F54#2C0F54

#2C0F54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.115 H 296.6°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2C0F54
RGBrgb(44, 15, 84)
HSLhsl(265, 70%, 19%)
HSVhsv(265, 82%, 33%)
CMYKcmyk(47.6%, 82.1%, 0%, 67.1%)
CIE-LABlab(12.72, 30.81, -36.07)
CIE-LCHlch(12.72, 47.44, 310.51°)
OKLaboklab(26.15% 0.0517 -0.1033)
OKLCHoklch(26.15% 0.115 296.6)
XYZxyz(2.8093, 1.5172, 8.5306)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F54 #37540F
analogous
#0F1554 #2C0F54 #4F0F54
triadic
#2C0F54 #542C0F #0F542C
tetradic
#2C0F54 #540F15 #37540F #0F544F
square
#2C0F54 #540F15 #37540F #0F544F
split-complementary
#2C0F54 #544F0F #15540F
monochromatic
#0E051A #110620 #2C0F54 #471888 #6222BC

Accessibility & contrast

On white

16.11
#2C0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F54
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F54#FFFFFF#000000##FFFFFF
##2C0F541.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#212131
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c0f54;
/* rgb */ color: rgb(44, 15, 84);
/* oklch */ color: oklch(26.1% 0.115 296.6);
Tailwind
colors: {
  custom: {
    50: '#6a5185',
    500: '#2c0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f54;
$custom-light: #6a5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f54",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 265.217,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26147,
    "c": 0.11548,
    "h": 296.6
  },
  "luminance": 0.01517
}

Semantic roles & 50–950 ramp

primary
#2C0F54
secondary
#678E31
accent
#ED3BA2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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