#2B105A#2B105A

#2B105A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.122 H 292.8°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2B105A
RGBrgb(43, 16, 90)
HSLhsl(262, 70%, 21%)
HSVhsv(262, 82%, 35%)
CMYKcmyk(52.2%, 82.2%, 0%, 64.7%)
CIE-LABlab(13.37, 31.90, -39.07)
CIE-LCHlch(13.37, 50.44, 309.23°)
OKLaboklab(26.76% 0.0472 -0.1121)
OKLCHoklch(26.76% 0.122 292.8)
XYZxyz(3.0265, 1.6223, 9.8245)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B105A #3F5A10
analogous
#101A5A #2B105A #50105A
triadic
#2B105A #5A2B10 #105A2B
tetradic
#2B105A #5A101A #3F5A10 #105A50
square
#2B105A #5A101A #3F5A10 #105A50
split-complementary
#2B105A #5A5010 #1A5A10
monochromatic
#0C051A #120726 #2B105A #44198E #5D22C2

Accessibility & contrast

On white

15.86
#2B105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B105A
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B105A#FFFFFF#000000##FFFFFF
##2B105A1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1C2434
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b105a;
/* rgb */ color: rgb(43, 16, 90);
/* oklch */ color: oklch(26.8% 0.122 292.8);
Tailwind
colors: {
  custom: {
    50: '#6a5289',
    500: '#2b105a',
    950: '#000000',
  },
}
SCSS
$custom: #2b105a;
$custom-light: #6a5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2b105a",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 261.892,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26756,
    "c": 0.12166,
    "h": 292.8
  },
  "luminance": 0.01622
}

Semantic roles & 50–950 ramp

primary
#2B105A
secondary
#709333
accent
#ED3BAC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B105A

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

Preview Lab → · Contrast checker → · Palette generator →

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