#2A0C51#2A0C51

#2A0C51 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.115 H 296.9°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2A0C51
RGBrgb(42, 12, 81)
HSLhsl(266, 74%, 18%)
HSVhsv(266, 85%, 32%)
CMYKcmyk(48.1%, 85.2%, 0%, 68.2%)
CIE-LABlab(11.62, 31.06, -35.83)
CIE-LCHlch(11.62, 47.42, 310.92°)
OKLaboklab(25.22% 0.052 -0.1026)
OKLCHoklch(25.22% 0.115 296.9)
XYZxyz(2.5711, 1.3492, 7.9079)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C51 #33510C
analogous
#0C1051 #2A0C51 #4C0C51
triadic
#2A0C51 #512A0C #0C512A
tetradic
#2A0C51 #510C10 #33510C #0C514C
square
#2A0C51 #510C10 #33510C #0C514C
split-complementary
#2A0C51 #514C0C #10510C
monochromatic
#0E041B #0E041C #2A0C51 #461486 #611CBC

Accessibility & contrast

On white

16.54
#2A0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C51
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C51#FFFFFF#000000##FFFFFF
##2A0C511.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#201F2E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0c51;
/* rgb */ color: rgb(42, 12, 81);
/* oklch */ color: oklch(25.2% 0.115 296.9);
Tailwind
colors: {
  custom: {
    50: '#694f83',
    500: '#2a0c51',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c51;
$custom-light: #694f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c51",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 266.087,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2522,
    "c": 0.11506,
    "h": 296.9
  },
  "luminance": 0.01349
}

Semantic roles & 50–950 ramp

primary
#2A0C51
secondary
#638C2C
accent
#F137A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2A0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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