#2A0F4B#2A0F4B

#2A0F4B is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.104 H 299.2°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2A0F4B
RGBrgb(42, 15, 75)
HSLhsl(267, 67%, 18%)
HSVhsv(267, 80%, 29%)
CMYKcmyk(44%, 80%, 0%, 70.6%)
CIE-LABlab(11.57, 27.78, -31.78)
CIE-LCHlch(11.57, 42.20, 311.16°)
OKLaboklab(25% 0.0507 -0.0908)
OKLCHoklch(25% 0.104 299.2)
XYZxyz(2.3953, 1.3419, 6.7881)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F4B #304B0F
analogous
#0F124B #2A0F4B #480F4B
triadic
#2A0F4B #4B2A0F #0F4B2A
tetradic
#2A0F4B #4B0F12 #304B0F #0F4B48
square
#2A0F4B #4B0F12 #304B0F #0F4B48
split-complementary
#2A0F4B #4B480F #124B0F
monochromatic
#0E051A #0E051A #2A0F4B #47197E #6323B1

Accessibility & contrast

On white

16.56
#2A0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A0F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F4B
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F4B#FFFFFF#000000##FFFFFF
##2A0F4B1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#221E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0f4b;
/* rgb */ color: rgb(42, 15, 75);
/* oklch */ color: oklch(25.0% 0.104 299.2);
Tailwind
colors: {
  custom: {
    50: '#67507e',
    500: '#2a0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f4b;
$custom-light: #67507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f4b",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 267,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25003,
    "c": 0.10396,
    "h": 299.2
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#2A0F4B
secondary
#5F8530
accent
#EA3E9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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