#2A0F56#2A0F56

#2A0F56 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.118 H 293.9°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2A0F56
RGBrgb(42, 15, 86)
HSLhsl(263, 70%, 20%)
HSVhsv(263, 83%, 34%)
CMYKcmyk(51.2%, 82.6%, 0%, 66.3%)
CIE-LABlab(12.64, 31.05, -37.56)
CIE-LCHlch(12.64, 48.73, 309.58°)
OKLaboklab(26.1% 0.0476 -0.1077)
OKLCHoklch(26.1% 0.118 293.9)
XYZxyz(2.8049, 1.5057, 8.9451)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F56 #3B560F
analogous
#0F1756 #2A0F56 #4E0F56
triadic
#2A0F56 #562A0F #0F562A
tetradic
#2A0F56 #560F17 #3B560F #0F564E
square
#2A0F56 #560F17 #3B560F #0F564E
split-complementary
#2A0F56 #564E0F #17560F
monochromatic
#0D051A #110622 #2A0F56 #43188A #5D21BE

Accessibility & contrast

On white

16.14
#2A0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F56
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F56#FFFFFF#000000##FFFFFF
##2A0F561.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1D2232
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a0f56;
/* rgb */ color: rgb(42, 15, 86);
/* oklch */ color: oklch(26.1% 0.118 293.9);
Tailwind
colors: {
  custom: {
    50: '#695186',
    500: '#2a0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f56;
$custom-light: #695186;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f56",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 262.817,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26096,
    "c": 0.11778,
    "h": 293.9
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#2A0F56
secondary
#6C9031
accent
#ED3BA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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