#2A0F4F#2A0F4F

#2A0F4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.109 H 297.1°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2A0F4F
RGBrgb(42, 15, 79)
HSLhsl(265, 68%, 18%)
HSVhsv(265, 81%, 31%)
CMYKcmyk(46.8%, 81%, 0%, 69%)
CIE-LABlab(11.95, 28.96, -33.92)
CIE-LCHlch(11.95, 44.60, 310.49°)
OKLaboklab(25.39% 0.0497 -0.097)
OKLCHoklch(25.39% 0.109 297.1)
XYZxyz(2.5366, 1.3984, 7.5319)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F4F #344F0F
analogous
#0F144F #2A0F4F #4A0F4F
triadic
#2A0F4F #4F2A0F #0F4F2A
tetradic
#2A0F4F #4F0F14 #344F0F #0F4F4A
square
#2A0F4F #4F0F14 #344F0F #0F4F4A
split-complementary
#2A0F4F #4F4A0F #144F0F
monochromatic
#0E051A #0F051C #2A0F4F #451982 #6123B6

Accessibility & contrast

On white

16.41
#2A0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F4F
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F4F#FFFFFF#000000##FFFFFF
##2A0F4F1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#20202E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0f4f;
/* rgb */ color: rgb(42, 15, 79);
/* oklch */ color: oklch(25.4% 0.109 297.1);
Tailwind
colors: {
  custom: {
    50: '#685081',
    500: '#2a0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f4f;
$custom-light: #685081;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f4f",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 265.313,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.10901,
    "h": 297.1
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#2A0F4F
secondary
#648931
accent
#EB3DA1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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