#2B116F#2B116F

#2B116F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 285.5°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2B116F
RGBrgb(43, 17, 111)
HSLhsl(257, 73%, 25%)
HSVhsv(257, 85%, 44%)
CMYKcmyk(61.3%, 84.7%, 0%, 56.5%)
CIE-LABlab(15.81, 37.75, -48.95)
CIE-LCHlch(15.81, 61.82, 307.64°)
OKLaboklab(29.14% 0.0392 -0.141)
OKLCHoklch(29.14% 0.146 285.5)
XYZxyz(4.0651, 2.0619, 15.2196)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B116F #556F11
analogous
#11266F #2B116F #5A116F
triadic
#2B116F #6F2B11 #116F2B
tetradic
#2B116F #6F1126 #556F11 #116F5A
square
#2B116F #6F1126 #556F11 #116F5A
split-complementary
#2B116F #6F5A11 #266F11
monochromatic
#0A041B #16093A #2B116F #4019A4 #5421D9

Accessibility & contrast

On white

14.87
#2B116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B116F
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B116F#FFFFFF#000000##FFFFFF
##2B116F1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#052E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b116f;
/* rgb */ color: rgb(43, 17, 111);
/* oklch */ color: oklch(29.1% 0.146 285.5);
Tailwind
colors: {
  custom: {
    50: '#6e5499',
    500: '#2b116f',
    950: '#000000',
  },
}
SCSS
$custom: #2b116f;
$custom-light: #6e5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2b116f",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 256.596,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29141,
    "c": 0.14639,
    "h": 285.5
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#2B116F
secondary
#87A635
accent
#F038BD
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B116F

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

Preview Lab → · Contrast checker → · Palette generator →

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