#2D1F70#2D1F70

#2D1F70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.132 H 283.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2D1F70
RGBrgb(45, 31, 112)
HSLhsl(250, 57%, 28%)
HSVhsv(250, 72%, 44%)
CMYKcmyk(59.8%, 72.3%, 0%, 56.1%)
CIE-LABlab(18.83, 30.69, -44.62)
CIE-LCHlch(18.83, 54.16, 304.52°)
OKLaboklab(31.35% 0.0311 -0.1284)
OKLCHoklch(31.35% 0.132 283.6)
XYZxyz(4.4959, 2.7074, 15.6118)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F70 #62701F
analogous
#1F3A70 #2D1F70 #551F70
triadic
#2D1F70 #702D1F #1F702D
tetradic
#2D1F70 #701F3A #62701F #1F7055
square
#2D1F70 #701F3A #62701F #1F7055
split-complementary
#2D1F70 #70551F #3A701F
monochromatic
#0A0718 #1A1240 #2D1F70 #402CA0 #573FCA

Accessibility & contrast

On white

13.62
#2D1F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F70
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F70#FFFFFF#000000##FFFFFF
##2D1F701.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#0A3445
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1f70;
/* rgb */ color: rgb(45, 31, 112);
/* oklch */ color: oklch(31.4% 0.132 283.6);
Tailwind
colors: {
  custom: {
    50: '#6e5c9a',
    500: '#2d1f70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f70;
$custom-light: #6e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f70",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 250.37,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.13214,
    "h": 283.6
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#2D1F70
secondary
#94A447
accent
#E048C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F70

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

Preview Lab → · Contrast checker → · Palette generator →

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