#2B4778#2B4778

#2B4778 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.090 H 260.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2B4778
RGBrgb(43, 71, 120)
HSLhsl(218, 47%, 32%)
HSVhsv(218, 64%, 47%)
CMYKcmyk(64.2%, 40.8%, 0%, 52.9%)
CIE-LABlab(30.34, 6.17, -31.17)
CIE-LCHlch(30.34, 31.77, 281.19°)
OKLaboklab(40.14% -0.0142 -0.0886)
OKLCHoklch(40.14% 0.09 260.9)
XYZxyz(6.6385, 6.3755, 18.6464)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4778 #785C2B
analogous
#2B6E78 #2B4778 #362B78
triadic
#2B4778 #782B47 #47782B
tetradic
#2B4778 #782B6E #785C2B #2B7836
square
#2B4778 #782B6E #785C2B #2B7836
split-complementary
#2B4778 #78362B #6E782B
monochromatic
#0B121E #1B2C4B #2B4778 #3B62A5 #5A80C4

Accessibility & contrast

On white

9.23
#2B4778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2B4778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4778
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4778#FFFFFF#000000##FFFFFF
##2B47781.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324B7A
Deuteranopia (green-blind)
#274477
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b4778;
/* rgb */ color: rgb(43, 71, 120);
/* oklch */ color: oklch(40.1% 0.090 260.9);
Tailwind
colors: {
  custom: {
    50: '#6c799f',
    500: '#2b4778',
    950: '#000000',
  },
}
SCSS
$custom: #2b4778;
$custom-light: #6c799f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4778",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 120
  },
  "hsl": {
    "h": 218.182,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40137,
    "c": 0.0897,
    "h": 260.9
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#2B4778
secondary
#AA8B55
accent
#A651D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4778

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

Preview Lab → · Contrast checker → · Palette generator →

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