#2B106A#2B106A

#2B106A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.141 H 287.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2B106A
RGBrgb(43, 16, 106)
HSLhsl(258, 74%, 24%)
HSVhsv(258, 85%, 42%)
CMYKcmyk(59.4%, 84.9%, 0%, 58.4%)
CIE-LABlab(15.09, 36.71, -46.88)
CIE-LCHlch(15.09, 59.54, 308.06°)
OKLaboklab(28.47% 0.0417 -0.135)
OKLCHoklch(28.47% 0.141 287.2)
XYZxyz(3.7823, 1.9246, 13.8051)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B106A #4F6A10
analogous
#10226A #2B106A #58106A
triadic
#2B106A #6A2B10 #106A2B
tetradic
#2B106A #6A1022 #4F6A10 #106A58
square
#2B106A #6A1022 #4F6A10 #106A58
split-complementary
#2B106A #6A5810 #226A10
monochromatic
#0B041B #150835 #2B106A #41189F #5620D4

Accessibility & contrast

On white

15.16
#2B106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B106A
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B106A#FFFFFF#000000##FFFFFF
##2B106A1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#0D2B3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b106a;
/* rgb */ color: rgb(43, 16, 106);
/* oklch */ color: oklch(28.5% 0.141 287.2);
Tailwind
colors: {
  custom: {
    50: '#6d5396',
    500: '#2b106a',
    950: '#000000',
  },
}
SCSS
$custom: #2b106a;
$custom-light: #6d5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2b106a",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 258,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28473,
    "c": 0.14126,
    "h": 287.2
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#2B106A
secondary
#81A234
accent
#F037B9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2B106A

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

Preview Lab → · Contrast checker → · Palette generator →

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