#2A0C4E#2A0C4E

#2A0C4E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.111 H 298.4°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2A0C4E
RGBrgb(42, 12, 78)
HSLhsl(267, 73%, 18%)
HSVhsv(267, 85%, 31%)
CMYKcmyk(46.2%, 84.6%, 0%, 69.4%)
CIE-LABlab(11.31, 30.20, -34.27)
CIE-LCHlch(11.31, 45.67, 311.39°)
OKLaboklab(24.92% 0.053 -0.098)
OKLCHoklch(24.92% 0.111 298.4)
XYZxyz(2.4611, 1.3052, 7.3285)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C4E #304E0C
analogous
#0C0F4E #2A0C4E #4B0C4E
triadic
#2A0C4E #4E2A0C #0C4E2A
tetradic
#2A0C4E #4E0C0F #304E0C #0C4E4B
square
#2A0C4E #4E0C0F #304E0C #0C4E4B
split-complementary
#2A0C4E #4E4B0C #0F4E0C
monochromatic
#0E041B #0E041B #2A0C4E #471483 #631CB8

Accessibility & contrast

On white

16.65
#2A0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A0C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C4E
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C4E#FFFFFF#000000##FFFFFF
##2A0C4E1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#211E2D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0c4e;
/* rgb */ color: rgb(42, 12, 78);
/* oklch */ color: oklch(24.9% 0.111 298.4);
Tailwind
colors: {
  custom: {
    50: '#684f80',
    500: '#2a0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c4e;
$custom-light: #684f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c4e",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 267.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24915,
    "c": 0.11143,
    "h": 298.4
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#2A0C4E
secondary
#5F8A2C
accent
#F0389C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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