#2B4879#2B4879

#2B4879 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.090 H 260.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2B4879
RGBrgb(43, 72, 121)
HSLhsl(218, 48%, 32%)
HSVhsv(218, 64%, 47%)
CMYKcmyk(64.5%, 40.5%, 0%, 52.5%)
CIE-LABlab(30.71, 5.87, -31.21)
CIE-LCHlch(30.71, 31.76, 280.65°)
OKLaboklab(40.44% -0.0152 -0.0887)
OKLCHoklch(40.44% 0.09 260.3)
XYZxyz(6.7636, 6.5282, 18.9891)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4879 #795C2B
analogous
#2B6F79 #2B4879 #352B79
triadic
#2B4879 #792B48 #48792B
tetradic
#2B4879 #792B6F #795C2B #2B7935
square
#2B4879 #792B6F #795C2B #2B7935
split-complementary
#2B4879 #79352B #6F792B
monochromatic
#0B121F #1B2D4C #2B4879 #3B63A6 #5A82C4

Accessibility & contrast

On white

9.11
#2B4879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2B4879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4879
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4879#FFFFFF#000000##FFFFFF
##2B48791.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C7B
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b4879;
/* rgb */ color: rgb(43, 72, 121);
/* oklch */ color: oklch(40.4% 0.090 260.3);
Tailwind
colors: {
  custom: {
    50: '#6c7aa0',
    500: '#2b4879',
    950: '#000000',
  },
}
SCSS
$custom: #2b4879;
$custom-light: #6c7aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4879",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 217.692,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4044,
    "c": 0.08997,
    "h": 260.3
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#2B4879
secondary
#AA8B56
accent
#A551D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4879

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

Preview Lab → · Contrast checker → · Palette generator →

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