#2B2176#2B2176

#2B2176 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.138 H 280.6°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2B2176
RGBrgb(43, 33, 118)
HSLhsl(247, 56%, 30%)
HSVhsv(247, 72%, 46%)
CMYKcmyk(63.6%, 72%, 0%, 53.7%)
CIE-LABlab(19.68, 31.16, -47.11)
CIE-LCHlch(19.68, 56.48, 303.48°)
OKLaboklab(32.09% 0.0253 -0.1358)
OKLCHoklch(32.09% 0.138 280.6)
XYZxyz(4.8091, 2.9090, 17.4441)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2176 #6C7621
analogous
#214276 #2B2176 #562176
triadic
#2B2176 #762B21 #21762B
tetradic
#2B2176 #762142 #6C7621 #217656
square
#2B2176 #762142 #6C7621 #217656
split-complementary
#2B2176 #765621 #427621
monochromatic
#090718 #1A1446 #2B2176 #3C2EA6 #5646CB

Accessibility & contrast

On white

13.28
#2B2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2176
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2176#FFFFFF#000000##FFFFFF
##2B21761.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b2176;
/* rgb */ color: rgb(43, 33, 118);
/* oklch */ color: oklch(32.1% 0.138 280.6);
Tailwind
colors: {
  custom: {
    50: '#6e5d9e',
    500: '#2b2176',
    950: '#000000',
  },
}
SCSS
$custom: #2b2176;
$custom-light: #6e5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2176",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 247.059,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32088,
    "c": 0.13813,
    "h": 280.6
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#2B2176
secondary
#9EA94A
accent
#E048CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B2176

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

Preview Lab → · Contrast checker → · Palette generator →

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