#2B13A1#2B13A1

#2B13A1 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.2% C 0.203 H 275.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2B13A1
RGBrgb(43, 19, 161)
HSLhsl(250, 79%, 35%)
HSVhsv(250, 88%, 63%)
CMYKcmyk(73.3%, 88.2%, 0%, 36.9%)
CIE-LABlab(22.13, 51.62, -69.93)
CIE-LCHlch(22.13, 86.92, 306.43°)
OKLaboklab(35.23% 0.0205 -0.202)
OKLCHoklch(35.23% 0.203 275.8)
XYZxyz(7.6600, 3.5518, 33.9932)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B13A1 #89A113
analogous
#1342A1 #2B13A1 #7213A1
triadic
#2B13A1 #A12B13 #13A12B
tetradic
#2B13A1 #A11342 #89A113 #13A172
square
#2B13A1 #A11342 #89A113 #13A172
split-complementary
#2B13A1 #A17213 #42A113
monochromatic
#0E0634 #1C0D6A #2B13A1 #3A19D8 #6145E9

Accessibility & contrast

On white

12.28
#2B13A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B13A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B13A1
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B13A1#FFFFFF#000000##FFFFFF
##2B13A11.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b13a1;
/* rgb */ color: rgb(43, 19, 161);
/* oklch */ color: oklch(35.2% 0.203 275.8);
Tailwind
colors: {
  custom: {
    50: '#7959be',
    500: '#2b13a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b13a1;
$custom-light: #7959be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b13a1",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 161
  },
  "hsl": {
    "h": 250.141,
    "s": 78.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.20308,
    "h": 275.8
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#2B13A1
secondary
#B3CA46
accent
#F532D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2B13A1

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

Preview Lab → · Contrast checker → · Palette generator →

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