#2A0F42#2A0F42

#2A0F42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.092 H 304.6°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2A0F42
RGBrgb(42, 15, 66)
HSLhsl(272, 63%, 16%)
HSVhsv(272, 77%, 26%)
CMYKcmyk(36.4%, 77.3%, 0%, 74.1%)
CIE-LABlab(10.76, 25.17, -26.80)
CIE-LCHlch(10.76, 36.76, 313.21°)
OKLaboklab(24.18% 0.0525 -0.0761)
OKLCHoklch(24.18% 0.092 304.6)
XYZxyz(2.1088, 1.2272, 5.2790)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F42 #27420F
analogous
#100F42 #2A0F42 #420F40
triadic
#2A0F42 #422A0F #0F422A
tetradic
#2A0F42 #42100F #27420F #0F4042
square
#2A0F42 #42100F #27420F #0F4042
split-complementary
#2A0F42 #40420F #0F4210
monochromatic
#100619 #100619 #2A0F42 #4A1A74 #6926A6

Accessibility & contrast

On white

16.86
#2A0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A0F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F42
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F42#FFFFFF#000000##FFFFFF
##2A0F421.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#261B27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0f42;
/* rgb */ color: rgb(42, 15, 66);
/* oklch */ color: oklch(24.2% 0.092 304.6);
Tailwind
colors: {
  custom: {
    50: '#665077',
    500: '#2a0f42',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f42;
$custom-light: #665077;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f42",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 271.765,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24175,
    "c": 0.09245,
    "h": 304.6
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#2A0F42
secondary
#547C30
accent
#E6428F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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