#2B2772#2B2772

#2B2772 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.125 H 279.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2B2772
RGBrgb(43, 39, 114)
HSLhsl(243, 49%, 30%)
HSVhsv(243, 66%, 45%)
CMYKcmyk(62.3%, 65.8%, 0%, 55.3%)
CIE-LABlab(20.75, 25.88, -42.79)
CIE-LCHlch(20.75, 50.01, 301.17°)
OKLaboklab(32.75% 0.0203 -0.1231)
OKLCHoklch(32.75% 0.125 279.4)
XYZxyz(4.7581, 3.1792, 16.2792)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2772 #6E7227
analogous
#274872 #2B2772 #512772
triadic
#2B2772 #722B27 #27722B
tetradic
#2B2772 #722748 #6E7227 #277251
square
#2B2772 #722748 #6E7227 #277251
split-complementary
#2B2772 #725127 #487227
monochromatic
#090817 #1A1744 #2B2772 #3C37A0 #5650C3

Accessibility & contrast

On white

12.84
#2B2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2772
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2772#FFFFFF#000000##FFFFFF
##2B27721.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2772;
/* rgb */ color: rgb(43, 39, 114);
/* oklch */ color: oklch(32.8% 0.125 279.4);
Tailwind
colors: {
  custom: {
    50: '#6d619b',
    500: '#2b2772',
    950: '#000000',
  },
}
SCSS
$custom: #2b2772;
$custom-light: #6d619b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2772",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 243.2,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.32751,
    "c": 0.12476,
    "h": 279.4
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2B2772
secondary
#A0A450
accent
#D94FD1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2772

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

Preview Lab → · Contrast checker → · Palette generator →

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