#2B105B#2B105B

#2B105B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.123 H 292.4°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2B105B
RGBrgb(43, 16, 91)
HSLhsl(262, 70%, 21%)
HSVhsv(262, 82%, 36%)
CMYKcmyk(52.7%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.47, 32.20, -39.58)
CIE-LCHlch(13.47, 51.03, 309.13°)
OKLaboklab(26.86% 0.0469 -0.1136)
OKLCHoklch(26.86% 0.123 292.4)
XYZxyz(3.0693, 1.6394, 10.0502)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B105B #405B10
analogous
#101A5B #2B105B #50105B
triadic
#2B105B #5B2B10 #105B2B
tetradic
#2B105B #5B101A #405B10 #105B50
square
#2B105B #5B101A #405B10 #105B50
split-complementary
#2B105B #5B5010 #1A5B10
monochromatic
#0C051A #120727 #2B105B #44198F #5C22C3

Accessibility & contrast

On white

15.81
#2B105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B105B
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B105B#FFFFFF#000000##FFFFFF
##2B105B1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#1B2535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b105b;
/* rgb */ color: rgb(43, 16, 91);
/* oklch */ color: oklch(26.9% 0.123 292.4);
Tailwind
colors: {
  custom: {
    50: '#6b528a',
    500: '#2b105b',
    950: '#000000',
  },
}
SCSS
$custom: #2b105b;
$custom-light: #6b528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b105b",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 261.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2686,
    "c": 0.12291,
    "h": 292.4
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#2B105B
secondary
#719433
accent
#ED3BAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B105B

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

Preview Lab → · Contrast checker → · Palette generator →

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