#2A0F52#2A0F52

#2A0F52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.113 H 295.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2A0F52
RGBrgb(42, 15, 82)
HSLhsl(264, 69%, 19%)
HSVhsv(264, 82%, 32%)
CMYKcmyk(48.8%, 81.7%, 0%, 67.8%)
CIE-LABlab(12.24, 29.85, -35.49)
CIE-LCHlch(12.24, 46.38, 310.07°)
OKLaboklab(25.69% 0.0488 -0.1017)
OKLCHoklch(25.69% 0.113 295.7)
XYZxyz(2.6483, 1.4430, 8.1200)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F52 #37520F
analogous
#0F1652 #2A0F52 #4C0F52
triadic
#2A0F52 #522A0F #0F522A
tetradic
#2A0F52 #520F16 #37520F #0F524C
square
#2A0F52 #520F16 #37520F #0F524C
split-complementary
#2A0F52 #524C0F #16520F
monochromatic
#0D051A #10061E #2A0F52 #441886 #5F22B9

Accessibility & contrast

On white

16.30
#2A0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F52
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F52#FFFFFF#000000##FFFFFF
##2A0F521.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1F2130
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a0f52;
/* rgb */ color: rgb(42, 15, 82);
/* oklch */ color: oklch(25.7% 0.113 295.7);
Tailwind
colors: {
  custom: {
    50: '#685083',
    500: '#2a0f52',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f52;
$custom-light: #685083;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f52",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 264.179,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25689,
    "c": 0.11279,
    "h": 295.7
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#2A0F52
secondary
#678C31
accent
#EC3CA5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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