#2B4E97#2B4E97

#2B4E97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.126 H 263.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2B4E97
RGBrgb(43, 78, 151)
HSLhsl(221, 56%, 38%)
HSVhsv(221, 72%, 59%)
CMYKcmyk(71.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.39, 13.25, -43.79)
CIE-LCHlch(34.39, 45.75, 286.84°)
OKLaboklab(43.89% -0.0155 -0.1255)
OKLCHoklch(43.89% 0.126 263)
XYZxyz(9.3046, 8.1958, 30.3637)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E97 #97742B
analogous
#2B8497 #2B4E97 #3E2B97
triadic
#2B4E97 #972B4E #4E972B
tetradic
#2B4E97 #972B84 #97742B #2B973E
square
#2B4E97 #972B84 #97742B #2B973E
split-complementary
#2B4E97 #973E2B #84972B
monochromatic
#101D38 #1D3567 #2B4E97 #3967C7 #688BD4

Accessibility & contrast

On white

7.96
#2B4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2B4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E97
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E97#FFFFFF#000000##FFFFFF
##2B4E971.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#0D4C96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b4e97;
/* rgb */ color: rgb(43, 78, 151);
/* oklch */ color: oklch(43.9% 0.126 263.0);
Tailwind
colors: {
  custom: {
    50: '#727fb6',
    500: '#2b4e97',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e97;
$custom-light: #727fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e97",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 220.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43885,
    "c": 0.12648,
    "h": 263
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#2B4E97
secondary
#BB9E63
accent
#AE49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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