#2A0F68#2A0F68

#2A0F68 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.140 H 287.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2A0F68
RGBrgb(42, 15, 104)
HSLhsl(258, 75%, 23%)
HSVhsv(258, 86%, 41%)
CMYKcmyk(59.6%, 85.6%, 0%, 59.2%)
CIE-LABlab(14.59, 36.44, -46.39)
CIE-LCHlch(14.59, 58.99, 308.15°)
OKLaboklab(28.03% 0.0414 -0.1336)
OKLCHoklch(28.03% 0.14 287.2)
XYZxyz(3.6236, 1.8332, 13.2569)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F68 #4D680F
analogous
#0F2068 #2A0F68 #560F68
triadic
#2A0F68 #682A0F #0F682A
tetradic
#2A0F68 #680F20 #4D680F #0F6856
square
#2A0F68 #680F20 #4D680F #0F6856
split-complementary
#2A0F68 #68560F #20680F
monochromatic
#0B041B #140733 #2A0F68 #40179D #551ED3

Accessibility & contrast

On white

15.37
#2A0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F68
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F68#FFFFFF#000000##FFFFFF
##2A0F681.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#0D2A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a0f68;
/* rgb */ color: rgb(42, 15, 104);
/* oklch */ color: oklch(28.0% 0.140 287.2);
Tailwind
colors: {
  custom: {
    50: '#6c5294',
    500: '#2a0f68',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f68;
$custom-light: #6c5294;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f68",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 258.202,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.13983,
    "h": 287.2
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#2A0F68
secondary
#7FA132
accent
#F136B9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2A0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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