#2A0F45#2A0F45

#2A0F45 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.096 H 302.7°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2A0F45
RGBrgb(42, 15, 69)
HSLhsl(270, 64%, 16%)
HSVhsv(270, 78%, 27%)
CMYKcmyk(39.1%, 78.3%, 0%, 72.9%)
CIE-LABlab(11.02, 26.03, -28.48)
CIE-LCHlch(11.02, 38.58, 312.42°)
OKLaboklab(24.44% 0.052 -0.0811)
OKLCHoklch(24.44% 0.096 302.7)
XYZxyz(2.1996, 1.2636, 5.7571)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F45 #2A450F
analogous
#0F0F45 #2A0F45 #450F45
triadic
#2A0F45 #452A0F #0F452A
tetradic
#2A0F45 #450F0F #2A450F #0F4545
square
#2A0F45 #450F0F #2A450F #0F4545
split-complementary
#2A0F45 #45450F #0F450F
monochromatic
#0F0519 #0F0519 #2A0F45 #491A77 #6725AA

Accessibility & contrast

On white

16.76
#2A0F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F45
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F45#FFFFFF#000000##FFFFFF
##2A0F451.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#241C28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0f45;
/* rgb */ color: rgb(42, 15, 69);
/* oklch */ color: oklch(24.4% 0.096 302.7);
Tailwind
colors: {
  custom: {
    50: '#675079',
    500: '#2a0f45',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f45;
$custom-light: #675079;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f45",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24444,
    "c": 0.0963,
    "h": 302.7
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#2A0F45
secondary
#587F30
accent
#E74194
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0F45

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

Preview Lab → · Contrast checker → · Palette generator →

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