#2B2671#2B2671

#2B2671 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.125 H 279.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2B2671
RGBrgb(43, 38, 113)
HSLhsl(244, 50%, 30%)
HSVhsv(244, 66%, 44%)
CMYKcmyk(61.9%, 66.4%, 0%, 55.7%)
CIE-LABlab(20.41, 26.19, -42.70)
CIE-LCHlch(20.41, 50.10, 301.52°)
OKLaboklab(32.48% 0.0214 -0.1228)
OKLCHoklch(32.48% 0.125 279.9)
XYZxyz(4.6691, 3.0917, 15.9703)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2671 #6C7126
analogous
#264771 #2B2671 #512671
triadic
#2B2671 #712B26 #26712B
tetradic
#2B2671 #712647 #6C7126 #267151
square
#2B2671 #712647 #6C7126 #267151
split-complementary
#2B2671 #715126 #477126
monochromatic
#090817 #1A1743 #2B2671 #3C359F #564EC3

Accessibility & contrast

On white

12.98
#2B2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2671
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2671#FFFFFF#000000##FFFFFF
##2B26711.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b2671;
/* rgb */ color: rgb(43, 38, 113);
/* oklch */ color: oklch(32.5% 0.125 279.9);
Tailwind
colors: {
  custom: {
    50: '#6d609a',
    500: '#2b2671',
    950: '#000000',
  },
}
SCSS
$custom: #2b2671;
$custom-light: #6d609a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2671",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 244,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32475,
    "c": 0.12468,
    "h": 279.9
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#2B2671
secondary
#9EA44F
accent
#D94FD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2671

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

Preview Lab → · Contrast checker → · Palette generator →

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