#2B104B#2B104B

#2B104B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.103 H 299.9°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2B104B
RGBrgb(43, 16, 75)
HSLhsl(267, 65%, 18%)
HSVhsv(267, 79%, 29%)
CMYKcmyk(42.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(11.90, 27.44, -31.22)
CIE-LCHlch(11.90, 41.57, 311.32°)
OKLaboklab(25.28% 0.0512 -0.0891)
OKLCHoklch(25.28% 0.103 299.9)
XYZxyz(2.4512, 1.3921, 6.7948)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B104B #304B10
analogous
#10124B #2B104B #48104B
triadic
#2B104B #4B2B10 #104B2B
tetradic
#2B104B #4B1012 #304B10 #104B48
square
#2B104B #4B1012 #304B10 #104B48
split-complementary
#2B104B #4B4810 #124B10
monochromatic
#0E0519 #0E0519 #2B104B #481B7D #6526B0

Accessibility & contrast

On white

16.43
#2B104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B104B
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B104B#FFFFFF#000000##FFFFFF
##2B104B1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#241E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b104b;
/* rgb */ color: rgb(43, 16, 75);
/* oklch */ color: oklch(25.3% 0.103 299.9);
Tailwind
colors: {
  custom: {
    50: '#68517e',
    500: '#2b104b',
    950: '#000000',
  },
}
SCSS
$custom: #2b104b;
$custom-light: #68517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b104b",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 267.458,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25276,
    "c": 0.10275,
    "h": 299.9
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#2B104B
secondary
#5F8532
accent
#E8409B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B104B

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

Preview Lab → · Contrast checker → · Palette generator →

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