#2B2771#2B2771

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

Color values

HEX#2B2771
RGBrgb(43, 39, 113)
HSLhsl(243, 49%, 30%)
HSVhsv(243, 65%, 44%)
CMYKcmyk(61.9%, 65.5%, 0%, 55.7%)
CIE-LABlab(20.66, 25.52, -42.29)
CIE-LCHlch(20.66, 49.40, 301.11°)
OKLaboklab(32.66% 0.0204 -0.1216)
OKLCHoklch(32.66% 0.123 279.5)
XYZxyz(4.7015, 3.1566, 15.9811)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2771 #6D7127
analogous
#274871 #2B2771 #502771
triadic
#2B2771 #712B27 #27712B
tetradic
#2B2771 #712748 #6D7127 #277150
square
#2B2771 #712748 #6D7127 #277150
split-complementary
#2B2771 #715027 #487127
monochromatic
#090817 #1A1744 #2B2771 #3C379E #5650C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B2771#FFFFFF#000000##FFFFFF
##2B27711.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)
#003573
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2771;
/* rgb */ color: rgb(43, 39, 113);
/* oklch */ color: oklch(32.7% 0.123 279.5);
Tailwind
colors: {
  custom: {
    50: '#6d619a',
    500: '#2b2771',
    950: '#000000',
  },
}
SCSS
$custom: #2b2771;
$custom-light: #6d619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2771",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 243.243,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32659,
    "c": 0.12332,
    "h": 279.5
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#2B2771
secondary
#9FA350
accent
#D850D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2771

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

Preview Lab → · Contrast checker → · Palette generator →

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