#2A0C53#2A0C53

#2A0C53 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.117 H 295.9°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2A0C53
RGBrgb(42, 12, 83)
HSLhsl(265, 75%, 19%)
HSVhsv(265, 86%, 33%)
CMYKcmyk(49.4%, 85.5%, 0%, 67.5%)
CIE-LABlab(11.82, 31.64, -36.86)
CIE-LCHlch(11.82, 48.58, 310.64°)
OKLaboklab(25.43% 0.0513 -0.1057)
OKLCHoklch(25.43% 0.117 295.9)
XYZxyz(2.6472, 1.3797, 8.3088)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C53 #35530C
analogous
#0C1153 #2A0C53 #4D0C53
triadic
#2A0C53 #532A0C #0C532A
tetradic
#2A0C53 #530C11 #35530C #0C534D
square
#2A0C53 #530C11 #35530C #0C534D
split-complementary
#2A0C53 #534D0C #11530C
monochromatic
#0E041B #0F041E #2A0C53 #451488 #601BBE

Accessibility & contrast

On white

16.46
#2A0C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C53
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C53#FFFFFF#000000##FFFFFF
##2A0C531.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002055
Deuteranopia (green-blind)
#001E52
Tritanopia (blue-blind)
#1E202F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0c53;
/* rgb */ color: rgb(42, 12, 83);
/* oklch */ color: oklch(25.4% 0.117 295.9);
Tailwind
colors: {
  custom: {
    50: '#694f84',
    500: '#2a0c53',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c53;
$custom-light: #694f84;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c53",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 265.352,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25427,
    "c": 0.11746,
    "h": 295.9
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#2A0C53
secondary
#658E2D
accent
#F136A2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0C53

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

Preview Lab → · Contrast checker → · Palette generator →

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