#2D1076#2D1076

#2D1076 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.155 H 285.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1076
RGBrgb(45, 16, 118)
HSLhsl(257, 76%, 26%)
HSVhsv(257, 86%, 46%)
CMYKcmyk(61.9%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.68, 40.50, -52.04)
CIE-LCHlch(16.68, 65.94, 307.90°)
OKLaboklab(30.03% 0.0406 -0.15)
OKLCHoklch(30.03% 0.155 285.1)
XYZxyz(4.5365, 2.2362, 17.3286)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1076 #597610
analogous
#102676 #2D1076 #601076
triadic
#2D1076 #762D10 #10762D
tetradic
#2D1076 #761026 #597610 #107660
square
#2D1076 #761026 #597610 #107660
split-complementary
#2D1076 #766010 #267610
monochromatic
#0A041B #180940 #2D1076 #4217AC #5720E1

Accessibility & contrast

On white

14.51
#2D1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1076
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1076#FFFFFF#000000##FFFFFF
##2D10761.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#013045
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1076;
/* rgb */ color: rgb(45, 16, 118);
/* oklch */ color: oklch(30.0% 0.155 285.1);
Tailwind
colors: {
  custom: {
    50: '#71549f',
    500: '#2d1076',
    950: '#000000',
  },
}
SCSS
$custom: #2d1076;
$custom-light: #71549f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1076",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 257.059,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30032,
    "c": 0.15535,
    "h": 285.1
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2D1076
secondary
#8BAD35
accent
#F335BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2D1076

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

Preview Lab → · Contrast checker → · Palette generator →

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