#2B4478#2B4478

#2B4478 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.094 H 263.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2B4478
RGBrgb(43, 68, 120)
HSLhsl(221, 47%, 32%)
HSVhsv(221, 64%, 47%)
CMYKcmyk(64.2%, 43.3%, 0%, 52.9%)
CIE-LABlab(29.42, 8.19, -32.63)
CIE-LCHlch(29.42, 33.64, 284.09°)
OKLaboklab(39.42% -0.0108 -0.0929)
OKLCHoklch(39.42% 0.094 263.4)
XYZxyz(6.4524, 6.0033, 18.5844)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4478 #785F2B
analogous
#2B6B78 #2B4478 #382B78
triadic
#2B4478 #782B44 #44782B
tetradic
#2B4478 #782B6B #785F2B #2B7838
square
#2B4478 #782B6B #785F2B #2B7838
split-complementary
#2B4478 #78382B #6B782B
monochromatic
#0B111E #1B2A4B #2B4478 #3B5EA5 #5A7CC4

Accessibility & contrast

On white

9.54
#2B4478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B4478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4478
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4478#FFFFFF#000000##FFFFFF
##2B44781.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D497A
Deuteranopia (green-blind)
#224277
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b4478;
/* rgb */ color: rgb(43, 68, 120);
/* oklch */ color: oklch(39.4% 0.094 263.4);
Tailwind
colors: {
  custom: {
    50: '#6c779f',
    500: '#2b4478',
    950: '#000000',
  },
}
SCSS
$custom: #2b4478;
$custom-light: #6c779f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4478",
  "rgb": {
    "r": 43,
    "g": 68,
    "b": 120
  },
  "hsl": {
    "h": 220.519,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39425,
    "c": 0.09352,
    "h": 263.4
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#2B4478
secondary
#AA8E55
accent
#AB51D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2B4478

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

Preview Lab → · Contrast checker → · Palette generator →

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