#2C0F5A#2C0F5A

#2C0F5A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.123 H 293.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2C0F5A
RGBrgb(44, 15, 90)
HSLhsl(263, 71%, 21%)
HSVhsv(263, 83%, 35%)
CMYKcmyk(51.1%, 83.3%, 0%, 64.7%)
CIE-LABlab(13.32, 32.58, -39.14)
CIE-LCHlch(13.32, 50.92, 309.77°)
OKLaboklab(26.76% 0.0498 -0.1123)
OKLCHoklch(26.76% 0.123 293.9)
XYZxyz(3.0545, 1.6152, 9.8217)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F5A #3D5A0F
analogous
#0F175A #2C0F5A #510F5A
triadic
#2C0F5A #5A2C0F #0F5A2C
tetradic
#2C0F5A #5A0F17 #3D5A0F #0F5A51
square
#2C0F5A #5A0F17 #3D5A0F #0F5A51
split-complementary
#2C0F5A #5A510F #175A0F
monochromatic
#0D041A #120626 #2C0F5A #46188E #5F20C3

Accessibility & contrast

On white

15.87
#2C0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F5A
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F5A#FFFFFF#000000##FFFFFF
##2C0F5A1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1E2434
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c0f5a;
/* rgb */ color: rgb(44, 15, 90);
/* oklch */ color: oklch(26.8% 0.123 293.9);
Tailwind
colors: {
  custom: {
    50: '#6b5189',
    500: '#2c0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f5a;
$custom-light: #6b5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f5a",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 263.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26756,
    "c": 0.12283,
    "h": 293.9
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#2C0F5A
secondary
#6E9431
accent
#EE3AA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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