#2D1A70#2D1A70

#2D1A70 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.138 H 284.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1A70
RGBrgb(45, 26, 112)
HSLhsl(253, 62%, 27%)
HSVhsv(253, 77%, 44%)
CMYKcmyk(59.8%, 76.8%, 0%, 56.1%)
CIE-LABlab(17.77, 33.65, -46.37)
CIE-LCHlch(17.77, 57.30, 305.97°)
OKLaboklab(30.59% 0.0356 -0.1335)
OKLCHoklch(30.59% 0.138 284.9)
XYZxyz(4.3753, 2.4663, 15.5716)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A70 #5D701A
analogous
#1A3270 #2D1A70 #581A70
triadic
#2D1A70 #702D1A #1A702D
tetradic
#2D1A70 #701A32 #5D701A #1A7058
square
#2D1A70 #701A32 #5D701A #1A7058
split-complementary
#2D1A70 #70581A #32701A
monochromatic
#0A0619 #190E3E #2D1A70 #4126A2 #5734D0

Accessibility & contrast

On white

14.06
#2D1A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A70
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A70#FFFFFF#000000##FFFFFF
##2D1A701.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#0A3243
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1a70;
/* rgb */ color: rgb(45, 26, 112);
/* oklch */ color: oklch(30.6% 0.138 284.9);
Tailwind
colors: {
  custom: {
    50: '#6f599a',
    500: '#2d1a70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a70;
$custom-light: #6f599a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a70",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 253.256,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30593,
    "c": 0.13818,
    "h": 284.9
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#2D1A70
secondary
#8FA541
accent
#E542C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A70

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

Preview Lab → · Contrast checker → · Palette generator →

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