#2A0F3F#2A0F3F

#2A0F3F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.089 H 306.7°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#2A0F3F
RGBrgb(42, 15, 63)
HSLhsl(274, 62%, 15%)
HSVhsv(274, 76%, 25%)
CMYKcmyk(33.3%, 76.2%, 0%, 75.3%)
CIE-LABlab(10.50, 24.32, -25.08)
CIE-LCHlch(10.50, 34.93, 314.12°)
OKLaboklab(23.91% 0.0529 -0.0711)
OKLCHoklch(23.91% 0.089 306.7)
XYZxyz(2.0227, 1.1928, 4.8253)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F3F #243F0F
analogous
#120F3F #2A0F3F #3F0F3C
triadic
#2A0F3F #3F2A0F #0F3F2A
tetradic
#2A0F3F #3F120F #243F0F #0F3C3F
square
#2A0F3F #3F120F #243F0F #0F3C3F
split-complementary
#2A0F3F #3C3F0F #0F3F12
monochromatic
#100619 #100619 #2A0F3F #4B1B70 #6C27A2

Accessibility & contrast

On white

16.95
#2A0F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F3F
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F3F#FFFFFF#000000##FFFFFF
##2A0F3F1.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#041D3E
Tritanopia (blue-blind)
#261925
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0f3f;
/* rgb */ color: rgb(42, 15, 63);
/* oklch */ color: oklch(23.9% 0.089 306.7);
Tailwind
colors: {
  custom: {
    50: '#664f74',
    500: '#2a0f3f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f3f;
$custom-light: #664f74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f3f",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 273.75,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23913,
    "c": 0.0886,
    "h": 306.7
  },
  "luminance": 0.01193
}

Semantic roles & 50–950 ramp

primary
#2A0F3F
secondary
#507930
accent
#E5438A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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