#2B2871#2B2871

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

Color values

HEX#2B2871
RGBrgb(43, 40, 113)
HSLhsl(242, 48%, 30%)
HSVhsv(242, 65%, 44%)
CMYKcmyk(61.9%, 64.6%, 0%, 55.7%)
CIE-LABlab(20.92, 24.85, -41.87)
CIE-LCHlch(20.92, 48.69, 300.69°)
OKLaboklab(32.85% 0.0193 -0.1204)
OKLCHoklch(32.85% 0.122 279.1)
XYZxyz(4.7347, 3.2231, 15.9922)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2871 #6E7128
analogous
#284971 #2B2871 #502871
triadic
#2B2871 #712B28 #28712B
tetradic
#2B2871 #712849 #6E7128 #287150
square
#2B2871 #712849 #6E7128 #287150
split-complementary
#2B2871 #715028 #497128
monochromatic
#090817 #1A1844 #2B2871 #3C389E #5652C2

Accessibility & contrast

On white

12.77
#2B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2871
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2871#FFFFFF#000000##FFFFFF
##2B28711.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2871;
/* rgb */ color: rgb(43, 40, 113);
/* oklch */ color: oklch(32.8% 0.122 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d629a',
    500: '#2b2871',
    950: '#000000',
  },
}
SCSS
$custom: #2b2871;
$custom-light: #6d629a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2871",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 242.466,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.12194,
    "h": 279.1
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2B2871
secondary
#A0A352
accent
#D750D2
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2871

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

Preview Lab → · Contrast checker → · Palette generator →

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