#2A0E4F#2A0E4F

#2A0E4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.110 H 297.4°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2A0E4F
RGBrgb(42, 14, 79)
HSLhsl(266, 70%, 18%)
HSVhsv(266, 82%, 31%)
CMYKcmyk(46.8%, 82.3%, 0%, 69%)
CIE-LABlab(11.76, 29.48, -34.22)
CIE-LCHlch(11.76, 45.17, 310.75°)
OKLaboklab(25.26% 0.0507 -0.0979)
OKLCHoklch(25.26% 0.11 297.4)
XYZxyz(2.5228, 1.3708, 7.5273)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0E4F #334F0E
analogous
#0E134F #2A0E4F #4A0E4F
triadic
#2A0E4F #4F2A0E #0E4F2A
tetradic
#2A0E4F #4F0E13 #334F0E #0E4F4A
square
#2A0E4F #4F0E13 #334F0E #0E4F4A
split-complementary
#2A0E4F #4F4A0E #134F0E
monochromatic
#0E051A #0E051B #2A0E4F #461783 #6120B7

Accessibility & contrast

On white

16.48
#2A0E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0E4F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0E4F#FFFFFF#000000##FFFFFF
##2A0E4F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#201F2E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0e4f;
/* rgb */ color: rgb(42, 14, 79);
/* oklch */ color: oklch(25.3% 0.110 297.4);
Tailwind
colors: {
  custom: {
    50: '#685081',
    500: '#2a0e4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0e4f;
$custom-light: #685081;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0e4f",
  "rgb": {
    "r": 42,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 265.846,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25261,
    "c": 0.11027,
    "h": 297.4
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#2A0E4F
secondary
#638A2F
accent
#ED3BA0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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