#2B2479#2B2479

#2B2479 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.139 H 279.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2B2479
RGBrgb(43, 36, 121)
HSLhsl(245, 54%, 31%)
HSVhsv(245, 70%, 47%)
CMYKcmyk(64.5%, 70.2%, 0%, 52.5%)
CIE-LABlab(20.66, 30.31, -47.43)
CIE-LCHlch(20.66, 56.28, 302.58°)
OKLaboklab(32.88% 0.0223 -0.1367)
OKLCHoklch(32.88% 0.139 279.2)
XYZxyz(5.0772, 3.1554, 18.4270)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2479 #727924
analogous
#244779 #2B2479 #552479
triadic
#2B2479 #792B24 #24792B
tetradic
#2B2479 #792447 #727924 #247955
square
#2B2479 #792447 #727924 #247955
split-complementary
#2B2479 #795524 #477924
monochromatic
#09081B #1A164A #2B2479 #3C32A8 #584DCA

Accessibility & contrast

On white

12.87
#2B2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B2479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2479
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2479#FFFFFF#000000##FFFFFF
##2B24791.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2479;
/* rgb */ color: rgb(43, 36, 121);
/* oklch */ color: oklch(32.9% 0.139 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2b2479',
    950: '#000000',
  },
}
SCSS
$custom: #2b2479;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2479",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 244.941,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32882,
    "c": 0.13851,
    "h": 279.2
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#2B2479
secondary
#A4AC4D
accent
#DE4AD1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B2479

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

Preview Lab → · Contrast checker → · Palette generator →

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