#2B2276#2B2276

#2B2276 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.137 H 280.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2B2276
RGBrgb(43, 34, 118)
HSLhsl(246, 55%, 30%)
HSVhsv(246, 71%, 46%)
CMYKcmyk(63.6%, 71.2%, 0%, 53.7%)
CIE-LABlab(19.90, 30.53, -46.74)
CIE-LCHlch(19.90, 55.83, 303.15°)
OKLaboklab(32.25% 0.0244 -0.1347)
OKLCHoklch(32.25% 0.137 280.3)
XYZxyz(4.8373, 2.9653, 17.4535)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2276 #6D7622
analogous
#224376 #2B2276 #552276
triadic
#2B2276 #762B22 #22762B
tetradic
#2B2276 #762243 #6D7622 #227655
square
#2B2276 #762243 #6D7622 #227655
split-complementary
#2B2276 #765522 #437622
monochromatic
#090718 #1A1446 #2B2276 #3C30A6 #5648CA

Accessibility & contrast

On white

13.18
#2B2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2276
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2276#FFFFFF#000000##FFFFFF
##2B22761.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2276;
/* rgb */ color: rgb(43, 34, 118);
/* oklch */ color: oklch(32.3% 0.137 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e5e9e',
    500: '#2b2276',
    950: '#000000',
  },
}
SCSS
$custom: #2b2276;
$custom-light: #6e5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2276",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 246.429,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.13689,
    "h": 280.3
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#2B2276
secondary
#9FA94B
accent
#DF49CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B2276

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

Preview Lab → · Contrast checker → · Palette generator →

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