#2D1970#2D1970

#2D1970 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.139 H 285.1°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2D1970
RGBrgb(45, 25, 112)
HSLhsl(254, 64%, 27%)
HSVhsv(254, 78%, 44%)
CMYKcmyk(59.8%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.57, 34.22, -46.70)
CIE-LCHlch(17.57, 57.90, 306.23°)
OKLaboklab(30.45% 0.0364 -0.1345)
OKLCHoklch(30.45% 0.139 285.1)
XYZxyz(4.3536, 2.4227, 15.5643)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1970 #5C7019
analogous
#193170 #2D1970 #591970
triadic
#2D1970 #702D19 #19702D
tetradic
#2D1970 #701931 #5C7019 #197059
square
#2D1970 #701931 #5C7019 #197059
split-complementary
#2D1970 #705919 #317019
monochromatic
#0A0619 #190E3E #2D1970 #4124A2 #5732D1

Accessibility & contrast

On white

14.15
#2D1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1970
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1970#FFFFFF#000000##FFFFFF
##2D19701.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#0B3143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1970;
/* rgb */ color: rgb(45, 25, 112);
/* oklch */ color: oklch(30.5% 0.139 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f589a',
    500: '#2d1970',
    950: '#000000',
  },
}
SCSS
$custom: #2d1970;
$custom-light: #6f589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1970",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 253.793,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.13931,
    "h": 285.1
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2D1970
secondary
#8EA540
accent
#E741C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1970

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

Preview Lab → · Contrast checker → · Palette generator →

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