#2A0C55#2A0C55

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

Color values

HEX#2A0C55
RGBrgb(42, 12, 85)
HSLhsl(265, 75%, 19%)
HSVhsv(265, 86%, 33%)
CMYKcmyk(50.6%, 85.9%, 0%, 66.7%)
CIE-LABlab(12.03, 32.22, -37.88)
CIE-LCHlch(12.03, 49.73, 310.38°)
OKLaboklab(25.64% 0.0506 -0.1086)
OKLCHoklch(25.64% 0.12 295)
XYZxyz(2.7256, 1.4110, 8.7213)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C55 #37550C
analogous
#0C1255 #2A0C55 #4F0C55
triadic
#2A0C55 #552A0C #0C552A
tetradic
#2A0C55 #550C12 #37550C #0C554F
square
#2A0C55 #550C12 #37550C #0C554F
split-complementary
#2A0C55 #554F0C #12550C
monochromatic
#0D041B #10041F #2A0C55 #45148B #5F1BC0

Accessibility & contrast

On white

16.38
#2A0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C55
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C55#FFFFFF#000000##FFFFFF
##2A0C551.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001E54
Tritanopia (blue-blind)
#1D2131
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a0c55;
/* rgb */ color: rgb(42, 12, 85);
/* oklch */ color: oklch(25.6% 0.120 295.0);
Tailwind
colors: {
  custom: {
    50: '#694f86',
    500: '#2a0c55',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c55;
$custom-light: #694f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c55",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 264.658,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25636,
    "c": 0.11986,
    "h": 295
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#2A0C55
secondary
#67902D
accent
#F236A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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