#2A0F3C#2A0F3C

#2A0F3C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.085 H 308.9°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2A0F3C
RGBrgb(42, 15, 60)
HSLhsl(276, 60%, 15%)
HSVhsv(276, 75%, 24%)
CMYKcmyk(30%, 75%, 0%, 76.5%)
CIE-LABlab(10.26, 23.48, -23.33)
CIE-LCHlch(10.26, 33.10, 315.18°)
OKLaboklab(23.66% 0.0532 -0.0659)
OKLCHoklch(23.66% 0.085 308.9)
XYZxyz(1.9411, 1.1602, 4.3958)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F3C #213C0F
analogous
#140F3C #2A0F3C #3C0F38
triadic
#2A0F3C #3C2A0F #0F3C2A
tetradic
#2A0F3C #3C140F #213C0F #0F383C
square
#2A0F3C #3C140F #213C0F #0F383C
split-complementary
#2A0F3C #383C0F #0F3C14
monochromatic
#110618 #110618 #2A0F3C #4C1B6D #6F279E

Accessibility & contrast

On white

17.05
#2A0F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F3C
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F3C#FFFFFF#000000##FFFFFF
##2A0F3C1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#081C3B
Tritanopia (blue-blind)
#271823
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0f3c;
/* rgb */ color: rgb(42, 15, 60);
/* oklch */ color: oklch(23.7% 0.085 308.9);
Tailwind
colors: {
  custom: {
    50: '#664f72',
    500: '#2a0f3c',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f3c;
$custom-light: #664f72;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f3c",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 276,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2366,
    "c": 0.08473,
    "h": 308.9
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#2A0F3C
secondary
#4C7630
accent
#E34584
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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