#2B4877#2B4877

#2B4877 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.3% C 0.087 H 259.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2B4877
RGBrgb(43, 72, 119)
HSLhsl(217, 47%, 32%)
HSVhsv(217, 64%, 47%)
CMYKcmyk(63.9%, 39.5%, 0%, 53.3%)
CIE-LABlab(30.59, 5.12, -30.14)
CIE-LCHlch(30.59, 30.57, 279.65°)
OKLaboklab(40.31% -0.0157 -0.0855)
OKLCHoklch(40.31% 0.087 259.6)
XYZxyz(6.6422, 6.4796, 18.3498)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4877 #775A2B
analogous
#2B6E77 #2B4877 #342B77
triadic
#2B4877 #772B48 #48772B
tetradic
#2B4877 #772B6E #775A2B #2B7734
square
#2B4877 #772B6E #775A2B #2B7734
split-complementary
#2B4877 #77342B #6E772B
monochromatic
#0B121D #1B2D4A #2B4877 #3B63A4 #5982C3

Accessibility & contrast

On white

9.15
#2B4877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2B4877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4877
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4877#FFFFFF#000000##FFFFFF
##2B48771.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344C79
Deuteranopia (green-blind)
#294576
Tritanopia (blue-blind)
#005359
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b4877;
/* rgb */ color: rgb(43, 72, 119);
/* oklch */ color: oklch(40.3% 0.087 259.6);
Tailwind
colors: {
  custom: {
    50: '#6c7a9e',
    500: '#2b4877',
    950: '#000000',
  },
}
SCSS
$custom: #2b4877;
$custom-light: #6c7a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4877",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 119
  },
  "hsl": {
    "h": 217.105,
    "s": 46.914,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.08697,
    "h": 259.6
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#2B4877
secondary
#A98955
accent
#A451D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4877

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

Preview Lab → · Contrast checker → · Palette generator →

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