#2A0F60#2A0F60

#2A0F60 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.130 H 289.9°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2A0F60
RGBrgb(42, 15, 96)
HSLhsl(260, 73%, 22%)
HSVhsv(260, 84%, 38%)
CMYKcmyk(56.3%, 84.4%, 0%, 62.4%)
CIE-LABlab(13.70, 34.05, -42.55)
CIE-LCHlch(13.70, 54.50, 308.66°)
OKLaboklab(27.15% 0.0443 -0.1223)
OKLCHoklch(27.15% 0.13 289.9)
XYZxyz(3.2364, 1.6783, 11.2175)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F60 #45600F
analogous
#0F1D60 #2A0F60 #530F60
triadic
#2A0F60 #602A0F #0F602A
tetradic
#2A0F60 #600F1D #45600F #0F6053
square
#2A0F60 #600F1D #45600F #0F6053
split-complementary
#2A0F60 #60530F #1D600F
monochromatic
#0C041A #13072B #2A0F60 #411795 #5820CA

Accessibility & contrast

On white

15.72
#2A0F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A0F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F60
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F60#FFFFFF#000000##FFFFFF
##2A0F601.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002462
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#162738
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a0f60;
/* rgb */ color: rgb(42, 15, 96);
/* oklch */ color: oklch(27.2% 0.130 289.9);
Tailwind
colors: {
  custom: {
    50: '#6b518e',
    500: '#2a0f60',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f60;
$custom-light: #6b518e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f60",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 260,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27152,
    "c": 0.13012,
    "h": 289.9
  },
  "luminance": 0.01678
}

Semantic roles & 50–950 ramp

primary
#2A0F60
secondary
#779932
accent
#F038B2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A0F60

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

Preview Lab → · Contrast checker → · Palette generator →

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