#2C0F6A#2C0F6A

#2C0F6A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.142 H 288.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2C0F6A
RGBrgb(44, 15, 106)
HSLhsl(259, 75%, 24%)
HSVhsv(259, 86%, 42%)
CMYKcmyk(58.5%, 85.8%, 0%, 58.4%)
CIE-LABlab(15.05, 37.30, -46.94)
CIE-LCHlch(15.05, 59.95, 308.47°)
OKLaboklab(28.48% 0.0441 -0.1351)
OKLCHoklch(28.48% 0.142 288.1)
XYZxyz(3.8103, 1.9175, 13.8022)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F6A #4D6A0F
analogous
#0F1F6A #2C0F6A #590F6A
triadic
#2C0F6A #6A2C0F #0F6A2C
tetradic
#2C0F6A #6A0F1F #4D6A0F #0F6A59
square
#2C0F6A #6A0F1F #4D6A0F #0F6A59
split-complementary
#2C0F6A #6A590F #1F6A0F
monochromatic
#0B041B #160734 #2C0F6A #4217A0 #591ED5

Accessibility & contrast

On white

15.18
#2C0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F6A
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F6A#FFFFFF#000000##FFFFFF
##2C0F6A1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#112B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c0f6a;
/* rgb */ color: rgb(44, 15, 106);
/* oklch */ color: oklch(28.5% 0.142 288.1);
Tailwind
colors: {
  custom: {
    50: '#6e5296',
    500: '#2c0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f6a;
$custom-light: #6e5296;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f6a",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 259.121,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28475,
    "c": 0.1421,
    "h": 288.1
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#2C0F6A
secondary
#7FA232
accent
#F236B6
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2C0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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