#2A0D45#2A0D45

#2A0D45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.099 H 303.2°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#2A0D45
RGBrgb(42, 13, 69)
HSLhsl(271, 68%, 16%)
HSVhsv(271, 81%, 27%)
CMYKcmyk(39.1%, 81.2%, 0%, 72.9%)
CIE-LABlab(10.63, 27.12, -29.11)
CIE-LCHlch(10.63, 39.79, 312.97°)
OKLaboklab(24.17% 0.0544 -0.0829)
OKLCHoklch(24.17% 0.099 303.2)
XYZxyz(2.1727, 1.2098, 5.7481)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D45 #28450D
analogous
#0E0D45 #2A0D45 #450D44
triadic
#2A0D45 #452A0D #0D452A
tetradic
#2A0D45 #450E0D #28450D #0D4445
square
#2A0D45 #450E0D #28450D #0D4445
split-complementary
#2A0D45 #44450D #0D450E
monochromatic
#10051A #10051A #2A0D45 #491778 #6920AC

Accessibility & contrast

On white

16.91
#2A0D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0D45
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D45#FFFFFF#000000##FFFFFF
##2A0D451.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#251B28
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0d45;
/* rgb */ color: rgb(42, 13, 69);
/* oklch */ color: oklch(24.2% 0.099 303.2);
Tailwind
colors: {
  custom: {
    50: '#674f79',
    500: '#2a0d45',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d45;
$custom-light: #674f79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d45",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 271.071,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24167,
    "c": 0.09915,
    "h": 303.2
  },
  "luminance": 0.0121
}

Semantic roles & 50–950 ramp

primary
#2A0D45
secondary
#55802D
accent
#EB3D91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0D45

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

Preview Lab → · Contrast checker → · Palette generator →

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