#2A0B56#2A0B56

#2A0B56 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.122 H 294.7°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2A0B56
RGBrgb(42, 11, 86)
HSLhsl(265, 77%, 19%)
HSVhsv(265, 87%, 34%)
CMYKcmyk(51.2%, 87.2%, 0%, 66.3%)
CIE-LABlab(11.98, 32.96, -38.65)
CIE-LCHlch(11.98, 50.80, 310.46°)
OKLaboklab(25.63% 0.0511 -0.1109)
OKLCHoklch(25.63% 0.122 294.7)
XYZxyz(2.7538, 1.4034, 8.9281)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B56 #37560B
analogous
#0B1256 #2A0B56 #500B56
triadic
#2A0B56 #562A0B #0B562A
tetradic
#2A0B56 #560B12 #37560B #0B5650
square
#2A0B56 #560B12 #37560B #0B5650
split-complementary
#2A0B56 #56500B #12560B
monochromatic
#0D031B #100420 #2A0B56 #44128C #5F19C3

Accessibility & contrast

On white

16.40
#2A0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B56
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B56#FFFFFF#000000##FFFFFF
##2A0B561.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#1D2131
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0b56;
/* rgb */ color: rgb(42, 11, 86);
/* oklch */ color: oklch(25.6% 0.122 294.7);
Tailwind
colors: {
  custom: {
    50: '#694f86',
    500: '#2a0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b56;
$custom-light: #694f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b56",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 264.8,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25634,
    "c": 0.12208,
    "h": 294.7
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#2A0B56
secondary
#67912B
accent
#F434A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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