#2A0948#2A0948

#2A0948 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.108 H 302.4°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#2A0948
RGBrgb(42, 9, 72)
HSLhsl(271, 78%, 16%)
HSVhsv(271, 88%, 28%)
CMYKcmyk(41.7%, 87.5%, 0%, 71.8%)
CIE-LABlab(10.22, 29.93, -31.88)
CIE-LCHlch(10.22, 43.72, 313.19°)
OKLaboklab(23.97% 0.0578 -0.091)
OKLCHoklch(23.97% 0.108 302.4)
XYZxyz(2.2219, 1.1555, 6.2356)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0948 #274809
analogous
#0B0948 #2A0948 #480946
triadic
#2A0948 #482A09 #09482A
tetradic
#2A0948 #480B09 #274809 #094648
square
#2A0948 #480B09 #274809 #094648
split-complementary
#2A0948 #464809 #09480B
monochromatic
#10031B #10031B #2A0948 #4A107E #6917B5

Accessibility & contrast

On white

17.06
#2A0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0948
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0948#FFFFFF#000000##FFFFFF
##2A09481.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#241A28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0948;
/* rgb */ color: rgb(42, 9, 72);
/* oklch */ color: oklch(24.0% 0.108 302.4);
Tailwind
colors: {
  custom: {
    50: '#674d7c',
    500: '#2a0948',
    950: '#000000',
  },
}
SCSS
$custom: #2a0948;
$custom-light: #674d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0948",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 271.429,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23971,
    "c": 0.10778,
    "h": 302.4
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#2A0948
secondary
#548527
accent
#F4348F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0948

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

Preview Lab → · Contrast checker → · Palette generator →

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