#2A0C45#2A0C45

#2A0C45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.101 H 303.5°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#2A0C45
RGBrgb(42, 12, 69)
HSLhsl(272, 70%, 16%)
HSVhsv(272, 83%, 27%)
CMYKcmyk(39.1%, 82.6%, 0%, 72.9%)
CIE-LABlab(10.45, 27.64, -29.41)
CIE-LCHlch(10.45, 40.36, 313.22°)
OKLaboklab(24.04% 0.0555 -0.0838)
OKLCHoklch(24.04% 0.101 303.5)
XYZxyz(2.1602, 1.1849, 5.7440)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C45 #27450C
analogous
#0D0C45 #2A0C45 #450C43
triadic
#2A0C45 #452A0C #0C452A
tetradic
#2A0C45 #450D0C #27450C #0C4345
square
#2A0C45 #450D0C #27450C #0C4345
split-complementary
#2A0C45 #43450C #0C450D
monochromatic
#10051A #10051A #2A0C45 #4A1579 #691EAD

Accessibility & contrast

On white

16.98
#2A0C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C45
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C45#FFFFFF#000000##FFFFFF
##2A0C451.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#251A27
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0c45;
/* rgb */ color: rgb(42, 12, 69);
/* oklch */ color: oklch(24.0% 0.101 303.5);
Tailwind
colors: {
  custom: {
    50: '#674e79',
    500: '#2a0c45',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c45;
$custom-light: #674e79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c45",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 271.579,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24037,
    "c": 0.1005,
    "h": 303.5
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#2A0C45
secondary
#54812C
accent
#ED3B8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0C45

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

Preview Lab → · Contrast checker → · Palette generator →

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