#2A0F48#2A0F48

#2A0F48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.100 H 300.9°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#2A0F48
RGBrgb(42, 15, 72)
HSLhsl(268, 66%, 17%)
HSVhsv(268, 79%, 28%)
CMYKcmyk(41.7%, 79.2%, 0%, 71.8%)
CIE-LABlab(11.29, 26.90, -30.14)
CIE-LCHlch(11.29, 40.40, 311.74°)
OKLaboklab(24.72% 0.0514 -0.0859)
OKLCHoklch(24.72% 0.1 300.9)
XYZxyz(2.2951, 1.3018, 6.2600)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F48 #2D480F
analogous
#0F1148 #2A0F48 #470F48
triadic
#2A0F48 #482A0F #0F482A
tetradic
#2A0F48 #480F11 #2D480F #0F4847
square
#2A0F48 #480F11 #2D480F #0F4847
split-complementary
#2A0F48 #48470F #11480F
monochromatic
#0F0519 #0F0519 #2A0F48 #481A7B #6524AD

Accessibility & contrast

On white

16.66
#2A0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A0F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F48
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F48#FFFFFF#000000##FFFFFF
##2A0F481.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#231D2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0f48;
/* rgb */ color: rgb(42, 15, 72);
/* oklch */ color: oklch(24.7% 0.100 300.9);
Tailwind
colors: {
  custom: {
    50: '#67507b',
    500: '#2a0f48',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f48;
$custom-light: #67507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f48",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 268.421,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2472,
    "c": 0.10013,
    "h": 300.9
  },
  "luminance": 0.01302
}

Semantic roles & 50–950 ramp

primary
#2A0F48
secondary
#5C8230
accent
#E83F98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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