#2B1983#2B1983

#2B1983 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.164 H 279.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2B1983
RGBrgb(43, 25, 131)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(67.2%, 80.9%, 0%, 48.6%)
CIE-LABlab(19.42, 40.00, -55.81)
CIE-LCHlch(19.42, 68.67, 305.63°)
OKLaboklab(32.32% 0.0278 -0.1611)
OKLCHoklch(32.32% 0.164 279.8)
XYZxyz(5.4393, 2.8471, 21.7312)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1983 #718319
analogous
#193C83 #2B1983 #601983
triadic
#2B1983 #832B19 #19832B
tetradic
#2B1983 #83193C #718319 #198360
square
#2B1983 #83193C #718319 #198360
split-complementary
#2B1983 #836019 #3C8319
monochromatic
#09051C #1A0F50 #2B1983 #3C23B6 #573DDA

Accessibility & contrast

On white

13.38
#2B1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1983
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1983#FFFFFF#000000##FFFFFF
##2B19831.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1983;
/* rgb */ color: rgb(43, 25, 131);
/* oklch */ color: oklch(32.3% 0.164 279.8);
Tailwind
colors: {
  custom: {
    50: '#7259a8',
    500: '#2b1983',
    950: '#000000',
  },
}
SCSS
$custom: #2b1983;
$custom-light: #7259a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1983",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 250.189,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32318,
    "c": 0.16351,
    "h": 279.8
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#2B1983
secondary
#A3B741
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1983

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

Preview Lab → · Contrast checker → · Palette generator →

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