#2B1480#2B1480

#2B1480 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.164 H 281.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2B1480
RGBrgb(43, 20, 128)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(66.4%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.24, 41.51, -55.86)
CIE-LCHlch(18.24, 69.59, 306.61°)
OKLaboklab(31.4% 0.0315 -0.1612)
OKLCHoklch(31.4% 0.164 281)
XYZxyz(5.1415, 2.5720, 20.6434)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1480 #698014
analogous
#143380 #2B1480 #611480
triadic
#2B1480 #802B14 #14802B
tetradic
#2B1480 #801433 #698014 #148061
square
#2B1480 #801433 #698014 #148061
split-complementary
#2B1480 #806114 #338014
monochromatic
#09041A #190C4B #2B1480 #3D1CB5 #5530DF

Accessibility & contrast

On white

13.87
#2B1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1480
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1480#FFFFFF#000000##FFFFFF
##2B14801.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1480;
/* rgb */ color: rgb(43, 20, 128);
/* oklch */ color: oklch(31.4% 0.164 281.0);
Tailwind
colors: {
  custom: {
    50: '#7256a6',
    500: '#2b1480',
    950: '#000000',
  },
}
SCSS
$custom: #2b1480;
$custom-light: #7256a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1480",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 252.778,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31399,
    "c": 0.16425,
    "h": 281
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#2B1480
secondary
#9BB53B
accent
#F038C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1480

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

Preview Lab → · Contrast checker → · Palette generator →

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