#2B4798#2B4798

#2B4798 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.137 H 266.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2B4798
RGBrgb(43, 71, 152)
HSLhsl(225, 56%, 38%)
HSVhsv(225, 72%, 60%)
CMYKcmyk(71.7%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.45, 18.34, -47.52)
CIE-LCHlch(32.45, 50.94, 291.11°)
OKLaboklab(42.43% -0.0089 -0.1366)
OKLCHoklch(42.43% 0.137 266.3)
XYZxyz(8.9150, 7.2862, 30.6362)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4798 #987C2B
analogous
#2B7D98 #2B4798 #452B98
triadic
#2B4798 #982B47 #47982B
tetradic
#2B4798 #982B7D #987C2B #2B9845
square
#2B4798 #982B7D #987C2B #2B9845
split-complementary
#2B4798 #98452B #7D982B
monochromatic
#101A39 #1E3168 #2B4798 #395EC7 #6985D5

Accessibility & contrast

On white

8.55
#2B4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2B4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4798
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4798#FFFFFF#000000##FFFFFF
##2B47981.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11529B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b4798;
/* rgb */ color: rgb(43, 71, 152);
/* oklch */ color: oklch(42.4% 0.137 266.3);
Tailwind
colors: {
  custom: {
    50: '#7379b7',
    500: '#2b4798',
    950: '#000000',
  },
}
SCSS
$custom: #2b4798;
$custom-light: #7379b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4798",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 224.587,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42431,
    "c": 0.13692,
    "h": 266.3
  },
  "luminance": 0.07287
}

Semantic roles & 50–950 ramp

primary
#2B4798
secondary
#BBA564
accent
#B949DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2B4798

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

Preview Lab → · Contrast checker → · Palette generator →

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