#2B105C#2B105C

#2B105C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.124 H 292.0°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2B105C
RGBrgb(43, 16, 92)
HSLhsl(261, 70%, 21%)
HSVhsv(261, 83%, 36%)
CMYKcmyk(53.3%, 82.6%, 0%, 63.9%)
CIE-LABlab(13.57, 32.51, -40.08)
CIE-LCHlch(13.57, 51.60, 309.04°)
OKLaboklab(26.96% 0.0466 -0.1151)
OKLCHoklch(26.96% 0.124 292)
XYZxyz(3.1128, 1.6568, 10.2789)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B105C #415C10
analogous
#101B5C #2B105C #51105C
triadic
#2B105C #5C2B10 #105C2B
tetradic
#2B105C #5C101B #415C10 #105C51
square
#2B105C #5C101B #415C10 #105C51
split-complementary
#2B105C #5C5110 #1B5C10
monochromatic
#0C051A #130728 #2B105C #431990 #5C22C4

Accessibility & contrast

On white

15.77
#2B105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B105C
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B105C#FFFFFF#000000##FFFFFF
##2B105C1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#1B2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b105c;
/* rgb */ color: rgb(43, 16, 92);
/* oklch */ color: oklch(27.0% 0.124 292.0);
Tailwind
colors: {
  custom: {
    50: '#6b528b',
    500: '#2b105c',
    950: '#000000',
  },
}
SCSS
$custom: #2b105c;
$custom-light: #6b528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b105c",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 261.316,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.12415,
    "h": 292
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#2B105C
secondary
#729533
accent
#ED3BAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B105C

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

Preview Lab → · Contrast checker → · Palette generator →

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