#2B1380#2B1380

#2B1380 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.165 H 281.2°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2B1380
RGBrgb(43, 19, 128)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 50%)
CMYKcmyk(66.4%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.09, 41.96, -56.11)
CIE-LCHlch(18.09, 70.07, 306.79°)
OKLaboklab(31.29% 0.032 -0.1619)
OKLCHoklch(31.29% 0.165 281.2)
XYZxyz(5.1242, 2.5375, 20.6376)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1380 #688013
analogous
#133280 #2B1380 #621380
triadic
#2B1380 #802B13 #13802B
tetradic
#2B1380 #801332 #688013 #138062
square
#2B1380 #801332 #688013 #138062
split-complementary
#2B1380 #806213 #328013
monochromatic
#09041B #190B4B #2B1380 #3D1BB5 #552DE0

Accessibility & contrast

On white

13.93
#2B1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1380
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1380#FFFFFF#000000##FFFFFF
##2B13801.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1380;
/* rgb */ color: rgb(43, 19, 128);
/* oklch */ color: oklch(31.3% 0.165 281.2);
Tailwind
colors: {
  custom: {
    50: '#7256a6',
    500: '#2b1380',
    950: '#000000',
  },
}
SCSS
$custom: #2b1380;
$custom-light: #7256a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1380",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 253.211,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31293,
    "c": 0.16506,
    "h": 281.2
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#2B1380
secondary
#9AB539
accent
#F137C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1380

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

Preview Lab → · Contrast checker → · Palette generator →

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