#2B104A#2B104A

#2B104A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.101 H 300.5°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2B104A
RGBrgb(43, 16, 74)
HSLhsl(268, 64%, 18%)
HSVhsv(268, 78%, 29%)
CMYKcmyk(41.9%, 78.4%, 0%, 71%)
CIE-LABlab(11.81, 27.15, -30.67)
CIE-LCHlch(11.81, 40.96, 311.51°)
OKLaboklab(25.18% 0.0514 -0.0875)
OKLCHoklch(25.18% 0.101 300.5)
XYZxyz(2.4173, 1.3786, 6.6160)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B104A #2F4A10
analogous
#10124A #2B104A #48104A
triadic
#2B104A #4A2B10 #104A2B
tetradic
#2B104A #4A1012 #2F4A10 #104A48
square
#2B104A #4A1012 #2F4A10 #104A48
split-complementary
#2B104A #4A4810 #124A10
monochromatic
#0F0519 #0F0519 #2B104A #481B7C #6526AF

Accessibility & contrast

On white

16.46
#2B104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B104A
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B104A#FFFFFF#000000##FFFFFF
##2B104A1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#241E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b104a;
/* rgb */ color: rgb(43, 16, 74);
/* oklch */ color: oklch(25.2% 0.101 300.5);
Tailwind
colors: {
  custom: {
    50: '#68517d',
    500: '#2b104a',
    950: '#000000',
  },
}
SCSS
$custom: #2b104a;
$custom-light: #68517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b104a",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 267.931,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25183,
    "c": 0.10147,
    "h": 300.5
  },
  "luminance": 0.01379
}

Semantic roles & 50–950 ramp

primary
#2B104A
secondary
#5E8432
accent
#E7409A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B104A

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

Preview Lab → · Contrast checker → · Palette generator →

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