#2B4178#2B4178

#2B4178 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.097 H 265.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2B4178
RGBrgb(43, 65, 120)
HSLhsl(223, 47%, 32%)
HSVhsv(223, 64%, 47%)
CMYKcmyk(64.2%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.51, 10.23, -34.08)
CIE-LCHlch(28.51, 35.58, 286.71°)
OKLaboklab(38.73% -0.0074 -0.0972)
OKLCHoklch(38.73% 0.097 265.7)
XYZxyz(6.2756, 5.6497, 18.5254)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4178 #78622B
analogous
#2B6878 #2B4178 #3C2B78
triadic
#2B4178 #782B41 #41782B
tetradic
#2B4178 #782B68 #78622B #2B783C
square
#2B4178 #782B68 #78622B #2B783C
split-complementary
#2B4178 #783C2B #68782B
monochromatic
#0B101E #1B294B #2B4178 #3B59A5 #5A78C4

Accessibility & contrast

On white

9.86
#2B4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2B4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4178
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4178#FFFFFF#000000##FFFFFF
##2B41781.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1C4077
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b4178;
/* rgb */ color: rgb(43, 65, 120);
/* oklch */ color: oklch(38.7% 0.097 265.7);
Tailwind
colors: {
  custom: {
    50: '#6c759f',
    500: '#2b4178',
    950: '#000000',
  },
}
SCSS
$custom: #2b4178;
$custom-light: #6c759f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4178",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 222.857,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38725,
    "c": 0.09747,
    "h": 265.7
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#2B4178
secondary
#AA9155
accent
#B151D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2B4178

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

Preview Lab → · Contrast checker → · Palette generator →

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