#2A0F58#2A0F58

#2A0F58 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.120 H 293.0°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2A0F58
RGBrgb(42, 15, 88)
HSLhsl(262, 71%, 20%)
HSVhsv(262, 83%, 35%)
CMYKcmyk(52.3%, 83%, 0%, 65.5%)
CIE-LABlab(12.85, 31.64, -38.57)
CIE-LCHlch(12.85, 49.89, 309.36°)
OKLaboklab(26.3% 0.047 -0.1107)
OKLCHoklch(26.3% 0.12 293)
XYZxyz(2.8866, 1.5384, 9.3755)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F58 #3D580F
analogous
#0F1858 #2A0F58 #4F0F58
triadic
#2A0F58 #582A0F #0F582A
tetradic
#2A0F58 #580F18 #3D580F #0F584F
square
#2A0F58 #580F18 #3D580F #0F584F
split-complementary
#2A0F58 #584F0F #18580F
monochromatic
#0C041A #110624 #2A0F58 #43188C #5C21C1

Accessibility & contrast

On white

16.06
#2A0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A0F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F58
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F58#FFFFFF#000000##FFFFFF
##2A0F581.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#1B2333
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a0f58;
/* rgb */ color: rgb(42, 15, 88);
/* oklch */ color: oklch(26.3% 0.120 293.0);
Tailwind
colors: {
  custom: {
    50: '#695188',
    500: '#2a0f58',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f58;
$custom-light: #695188;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f58",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 262.192,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26303,
    "c": 0.12027,
    "h": 293
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#2A0F58
secondary
#6E9231
accent
#EE3AAB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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