#2A0F4C#2A0F4C

#2A0F4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.105 H 298.7°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2A0F4C
RGBrgb(42, 15, 76)
HSLhsl(267, 67%, 18%)
HSVhsv(267, 80%, 30%)
CMYKcmyk(44.7%, 80.3%, 0%, 70.2%)
CIE-LABlab(11.66, 28.07, -32.32)
CIE-LCHlch(11.66, 42.80, 310.98°)
OKLaboklab(25.1% 0.0505 -0.0923)
OKLCHoklch(25.1% 0.105 298.7)
XYZxyz(2.4298, 1.3557, 6.9697)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F4C #314C0F
analogous
#0F134C #2A0F4C #480F4C
triadic
#2A0F4C #4C2A0F #0F4C2A
tetradic
#2A0F4C #4C0F13 #314C0F #0F4C48
square
#2A0F4C #4C0F13 #314C0F #0F4C48
split-complementary
#2A0F4C #4C480F #134C0F
monochromatic
#0E051A #0E051A #2A0F4C #46197F #6223B2

Accessibility & contrast

On white

16.52
#2A0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F4C
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F4C#FFFFFF#000000##FFFFFF
##2A0F4C1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0f4c;
/* rgb */ color: rgb(42, 15, 76);
/* oklch */ color: oklch(25.1% 0.105 298.7);
Tailwind
colors: {
  custom: {
    50: '#68507f',
    500: '#2a0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f4c;
$custom-light: #68507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f4c",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 266.557,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25099,
    "c": 0.10522,
    "h": 298.7
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#2A0F4C
secondary
#608631
accent
#EA3E9E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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