#2B1083#2B1083

#2B1083 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.171 H 280.9°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2B1083
RGBrgb(43, 16, 131)
HSLhsl(254, 78%, 29%)
HSVhsv(254, 88%, 51%)
CMYKcmyk(67.2%, 87.8%, 0%, 48.6%)
CIE-LABlab(18.02, 44.11, -58.13)
CIE-LCHlch(18.02, 72.97, 307.19°)
OKLaboklab(31.35% 0.0322 -0.1677)
OKLCHoklch(31.35% 0.171 280.9)
XYZxyz(5.2770, 2.5225, 21.6771)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1083 #688310
analogous
#102F83 #2B1083 #651083
triadic
#2B1083 #832B10 #10832B
tetradic
#2B1083 #83102F #688310 #108365
square
#2B1083 #83102F #688310 #108365
split-complementary
#2B1083 #836510 #2F8310
monochromatic
#09031B #19094C #2B1083 #3D17BA #5529E5

Accessibility & contrast

On white

13.96
#2B1083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1083
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1083#FFFFFF#000000##FFFFFF
##2B10831.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002881
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1083;
/* rgb */ color: rgb(43, 16, 131);
/* oklch */ color: oklch(31.4% 0.171 280.9);
Tailwind
colors: {
  custom: {
    50: '#7355a8',
    500: '#2b1083',
    950: '#000000',
  },
}
SCSS
$custom: #2b1083;
$custom-light: #7355a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1083",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 254.087,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.1708,
    "h": 280.9
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#2B1083
secondary
#9AB936
accent
#F533C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1083

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

Preview Lab → · Contrast checker → · Palette generator →

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