#2A0F40#2A0F40

#2A0F40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.090 H 306.0°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#2A0F40
RGBrgb(42, 15, 64)
HSLhsl(273, 62%, 15%)
HSVhsv(273, 77%, 25%)
CMYKcmyk(34.4%, 76.6%, 0%, 74.9%)
CIE-LABlab(10.59, 24.60, -25.65)
CIE-LCHlch(10.59, 35.54, 313.80°)
OKLaboklab(24% 0.0528 -0.0728)
OKLCHoklch(24% 0.09 306)
XYZxyz(2.0509, 1.2041, 4.9739)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F40 #25400F
analogous
#110F40 #2A0F40 #400F3D
triadic
#2A0F40 #402A0F #0F402A
tetradic
#2A0F40 #40110F #25400F #0F3D40
square
#2A0F40 #40110F #25400F #0F3D40
split-complementary
#2A0F40 #3D400F #0F4011
monochromatic
#100619 #100619 #2A0F40 #4B1B72 #6B26A3

Accessibility & contrast

On white

16.92
#2A0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F40
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F40#FFFFFF#000000##FFFFFF
##2A0F401.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#261A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0f40;
/* rgb */ color: rgb(42, 15, 64);
/* oklch */ color: oklch(24.0% 0.090 306.0);
Tailwind
colors: {
  custom: {
    50: '#664f75',
    500: '#2a0f40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f40;
$custom-light: #664f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f40",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 273.061,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24,
    "c": 0.08988,
    "h": 306
  },
  "luminance": 0.01204
}

Semantic roles & 50–950 ramp

primary
#2A0F40
secondary
#527A30
accent
#E5438C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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