#2D0A4C#2D0A4C

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

Color values

HEX#2D0A4C
RGBrgb(45, 10, 76)
HSLhsl(272, 77%, 17%)
HSVhsv(272, 87%, 30%)
CMYKcmyk(40.8%, 86.8%, 0%, 70.2%)
CIE-LABlab(11.25, 31.13, -32.96)
CIE-LCHlch(11.25, 45.33, 313.36°)
OKLaboklab(24.91% 0.0606 -0.0941)
OKLCHoklch(24.91% 0.112 302.8)
XYZxyz(2.4949, 1.2968, 6.9549)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0A4C #294C0A
analogous
#0C0A4C #2D0A4C #4C0A4A
triadic
#2D0A4C #4C2D0A #0A4C2D
tetradic
#2D0A4C #4C0C0A #294C0A #0A4A4C
square
#2D0A4C #4C0C0A #294C0A #0A4A4C
split-complementary
#2D0A4C #4A4C0A #0A4C0C
monochromatic
#10041B #10041B #2D0A4C #4D1182 #6D18B8

Accessibility & contrast

On white

16.67
#2D0A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0A4C
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0A4C#FFFFFF#000000##FFFFFF
##2D0A4C1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#261C2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0a4c;
/* rgb */ color: rgb(45, 10, 76);
/* oklch */ color: oklch(24.9% 0.112 302.8);
Tailwind
colors: {
  custom: {
    50: '#6a4e7f',
    500: '#2d0a4c',
    950: '#000000',
  },
}
SCSS
$custom: #2d0a4c;
$custom-light: #6a4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0a4c",
  "rgb": {
    "r": 45,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 271.818,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24912,
    "c": 0.1119,
    "h": 302.8
  },
  "luminance": 0.01297
}

Semantic roles & 50–950 ramp

primary
#2D0A4C
secondary
#568929
accent
#F3358E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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