#2B105D#2B105D

#2B105D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.125 H 291.6°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2B105D
RGBrgb(43, 16, 93)
HSLhsl(261, 71%, 21%)
HSVhsv(261, 83%, 36%)
CMYKcmyk(53.8%, 82.8%, 0%, 63.5%)
CIE-LABlab(13.68, 32.81, -40.58)
CIE-LCHlch(13.68, 52.18, 308.95°)
OKLaboklab(27.07% 0.0462 -0.1165)
OKLCHoklch(27.07% 0.125 291.6)
XYZxyz(3.1568, 1.6744, 10.5107)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B105D #425D10
analogous
#101C5D #2B105D #52105D
triadic
#2B105D #5D2B10 #105D2B
tetradic
#2B105D #5D101C #425D10 #105D52
square
#2B105D #5D101C #425D10 #105D52
split-complementary
#2B105D #5D5210 #1C5D10
monochromatic
#0C041A #130729 #2B105D #431991 #5B22C5

Accessibility & contrast

On white

15.73
#2B105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B105D
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B105D#FFFFFF#000000##FFFFFF
##2B105D1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#1A2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b105d;
/* rgb */ color: rgb(43, 16, 93);
/* oklch */ color: oklch(27.1% 0.125 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b528c',
    500: '#2b105d',
    950: '#000000',
  },
}
SCSS
$custom: #2b105d;
$custom-light: #6b528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b105d",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 261.039,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27069,
    "c": 0.12538,
    "h": 291.6
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#2B105D
secondary
#739633
accent
#ED3AAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B105D

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

Preview Lab → · Contrast checker → · Palette generator →

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