#2A0F5F#2A0F5F

#2A0F5F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.129 H 290.3°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2A0F5F
RGBrgb(42, 15, 95)
HSLhsl(260, 73%, 22%)
HSVhsv(260, 84%, 37%)
CMYKcmyk(55.8%, 84.2%, 0%, 62.7%)
CIE-LABlab(13.59, 33.74, -42.06)
CIE-LCHlch(13.59, 53.93, 308.74°)
OKLaboklab(27.04% 0.0446 -0.1209)
OKLCHoklch(27.04% 0.129 290.3)
XYZxyz(3.1906, 1.6600, 10.9765)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F5F #445F0F
analogous
#0F1C5F #2A0F5F #520F5F
triadic
#2A0F5F #5F2A0F #0F5F2A
tetradic
#2A0F5F #5F0F1C #445F0F #0F5F52
square
#2A0F5F #5F0F1C #445F0F #0F5F52
split-complementary
#2A0F5F #5F520F #1C5F0F
monochromatic
#0C041A #13072A #2A0F5F #411794 #5920C9

Accessibility & contrast

On white

15.77
#2A0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F5F
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F5F#FFFFFF#000000##FFFFFF
##2A0F5F1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#162637
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a0f5f;
/* rgb */ color: rgb(42, 15, 95);
/* oklch */ color: oklch(27.0% 0.129 290.3);
Tailwind
colors: {
  custom: {
    50: '#6b518d',
    500: '#2a0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f5f;
$custom-light: #6b518d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f5f",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 260.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27044,
    "c": 0.1289,
    "h": 290.3
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#2A0F5F
secondary
#769832
accent
#EF38B2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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