#2D1B70#2D1B70

#2D1B70 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.137 H 284.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1B70
RGBrgb(45, 27, 112)
HSLhsl(253, 61%, 27%)
HSVhsv(253, 76%, 44%)
CMYKcmyk(59.8%, 75.9%, 0%, 56.1%)
CIE-LABlab(17.97, 33.08, -46.04)
CIE-LCHlch(17.97, 56.69, 305.70°)
OKLaboklab(30.74% 0.0347 -0.1325)
OKLCHoklch(30.74% 0.137 284.7)
XYZxyz(4.3979, 2.5113, 15.5791)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B70 #5E701B
analogous
#1B3470 #2D1B70 #581B70
triadic
#2D1B70 #702D1B #1B702D
tetradic
#2D1B70 #701B34 #5E701B #1B7058
square
#2D1B70 #701B34 #5E701B #1B7058
split-complementary
#2D1B70 #70581B #34701B
monochromatic
#0A0619 #190F3F #2D1B70 #4127A1 #5737CF

Accessibility & contrast

On white

13.98
#2D1B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B70
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B70#FFFFFF#000000##FFFFFF
##2D1B701.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1b70;
/* rgb */ color: rgb(45, 27, 112);
/* oklch */ color: oklch(30.7% 0.137 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f599a',
    500: '#2d1b70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b70;
$custom-light: #6f599a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b70",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 252.706,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30737,
    "c": 0.13702,
    "h": 284.7
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2D1B70
secondary
#90A542
accent
#E444C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B70

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

Preview Lab → · Contrast checker → · Palette generator →

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