#2A0F4D#2A0F4D

#2A0F4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.106 H 298.1°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2A0F4D
RGBrgb(42, 15, 77)
HSLhsl(266, 67%, 18%)
HSVhsv(266, 81%, 30%)
CMYKcmyk(45.5%, 80.5%, 0%, 69.8%)
CIE-LABlab(11.75, 28.37, -32.85)
CIE-LCHlch(11.75, 43.40, 310.81°)
OKLaboklab(25.2% 0.0502 -0.0939)
OKLCHoklch(25.2% 0.106 298.1)
XYZxyz(2.4649, 1.3697, 7.1542)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F4D #324D0F
analogous
#0F134D #2A0F4D #490F4D
triadic
#2A0F4D #4D2A0F #0F4D2A
tetradic
#2A0F4D #4D0F13 #324D0F #0F4D49
square
#2A0F4D #4D0F13 #324D0F #0F4D49
split-complementary
#2A0F4D #4D490F #134D0F
monochromatic
#0E051A #0E051A #2A0F4D #461980 #6223B3

Accessibility & contrast

On white

16.48
#2A0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F4D
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F4D#FFFFFF#000000##FFFFFF
##2A0F4D1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#211F2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0f4d;
/* rgb */ color: rgb(42, 15, 77);
/* oklch */ color: oklch(25.2% 0.106 298.1);
Tailwind
colors: {
  custom: {
    50: '#68507f',
    500: '#2a0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f4d;
$custom-light: #68507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f4d",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 266.129,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25196,
    "c": 0.10649,
    "h": 298.1
  },
  "luminance": 0.0137
}

Semantic roles & 50–950 ramp

primary
#2A0F4D
secondary
#618731
accent
#EA3E9F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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