#2A0F51#2A0F51

#2A0F51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.112 H 296.1°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2A0F51
RGBrgb(42, 15, 81)
HSLhsl(265, 69%, 19%)
HSVhsv(265, 81%, 32%)
CMYKcmyk(48.1%, 81.5%, 0%, 68.2%)
CIE-LABlab(12.14, 29.55, -34.97)
CIE-LCHlch(12.14, 45.79, 310.20°)
OKLaboklab(25.59% 0.0491 -0.1001)
OKLCHoklch(25.59% 0.112 296.1)
XYZxyz(2.6105, 1.4279, 7.9211)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F51 #36510F
analogous
#0F1551 #2A0F51 #4B0F51
triadic
#2A0F51 #512A0F #0F512A
tetradic
#2A0F51 #510F15 #36510F #0F514B
square
#2A0F51 #510F15 #36510F #0F514B
split-complementary
#2A0F51 #514B0F #15510F
monochromatic
#0D051A #0F051D #2A0F51 #451985 #6022B8

Accessibility & contrast

On white

16.33
#2A0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F51
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F51#FFFFFF#000000##FFFFFF
##2A0F511.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#1F202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a0f51;
/* rgb */ color: rgb(42, 15, 81);
/* oklch */ color: oklch(25.6% 0.112 296.1);
Tailwind
colors: {
  custom: {
    50: '#685082',
    500: '#2a0f51',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f51;
$custom-light: #685082;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f51",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 264.545,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25589,
    "c": 0.11153,
    "h": 296.1
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#2A0F51
secondary
#668B31
accent
#EC3CA4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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