#2B104D#2B104D

#2B104D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.105 H 298.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2B104D
RGBrgb(43, 16, 77)
HSLhsl(267, 66%, 18%)
HSVhsv(267, 79%, 30%)
CMYKcmyk(44.2%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.09, 28.03, -32.30)
CIE-LCHlch(12.09, 42.77, 310.95°)
OKLaboklab(25.47% 0.0508 -0.0922)
OKLCHoklch(25.47% 0.105 298.8)
XYZxyz(2.5208, 1.4200, 7.1610)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B104D #324D10
analogous
#10144D #2B104D #49104D
triadic
#2B104D #4D2B10 #104D2B
tetradic
#2B104D #4D1014 #324D10 #104D49
square
#2B104D #4D1014 #324D10 #104D49
split-complementary
#2B104D #4D4910 #144D10
monochromatic
#0E0519 #0F051A #2B104D #471B80 #6425B2

Accessibility & contrast

On white

16.36
#2B104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B104D
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B104D#FFFFFF#000000##FFFFFF
##2B104D1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#231F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b104d;
/* rgb */ color: rgb(43, 16, 77);
/* oklch */ color: oklch(25.5% 0.105 298.8);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2b104d',
    950: '#000000',
  },
}
SCSS
$custom: #2b104d;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b104d",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 266.557,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25465,
    "c": 0.1053,
    "h": 298.8
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#2B104D
secondary
#618732
accent
#E93F9E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B104D

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

Preview Lab → · Contrast checker → · Palette generator →

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