#2A0C40#2A0C40

#2A0C40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.094 H 306.8°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2A0C40
RGBrgb(42, 12, 64)
HSLhsl(275, 68%, 15%)
HSVhsv(275, 81%, 25%)
CMYKcmyk(34.4%, 81.2%, 0%, 74.9%)
CIE-LABlab(10.00, 26.25, -26.61)
CIE-LCHlch(10.00, 37.38, 314.61°)
OKLaboklab(23.58% 0.0566 -0.0756)
OKLCHoklch(23.58% 0.094 306.8)
XYZxyz(2.0115, 1.1254, 4.9607)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C40 #22400C
analogous
#100C40 #2A0C40 #400C3C
triadic
#2A0C40 #402A0C #0C402A
tetradic
#2A0C40 #40100C #22400C #0C3C40
square
#2A0C40 #40100C #22400C #0C3C40
split-complementary
#2A0C40 #3C400C #0C4010
monochromatic
#11051A #11051A #2A0C40 #4C1674 #6E1FA7

Accessibility & contrast

On white

17.14
#2A0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C40
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C40#FFFFFF#000000##FFFFFF
##2A0C401.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#261825
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0c40;
/* rgb */ color: rgb(42, 12, 64);
/* oklch */ color: oklch(23.6% 0.094 306.8);
Tailwind
colors: {
  custom: {
    50: '#664e75',
    500: '#2a0c40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c40;
$custom-light: #664e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c40",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 274.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23577,
    "c": 0.09439,
    "h": 306.8
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#2A0C40
secondary
#4E7C2C
accent
#EB3D86
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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