#2B4F97#2B4F97

#2B4F97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.125 H 262.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2B4F97
RGBrgb(43, 79, 151)
HSLhsl(220, 56%, 38%)
HSVhsv(220, 72%, 59%)
CMYKcmyk(71.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.68, 12.59, -43.32)
CIE-LCHlch(34.68, 45.11, 286.20°)
OKLaboklab(44.11% -0.0164 -0.1241)
OKLCHoklch(44.11% 0.125 262.5)
XYZxyz(9.3762, 8.3389, 30.3876)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F97 #97732B
analogous
#2B8597 #2B4F97 #3D2B97
triadic
#2B4F97 #972B4F #4F972B
tetradic
#2B4F97 #972B85 #97732B #2B973D
square
#2B4F97 #972B85 #97732B #2B973D
split-complementary
#2B4F97 #973D2B #85972B
monochromatic
#101D38 #1D3667 #2B4F97 #3968C7 #688CD4

Accessibility & contrast

On white

7.87
#2B4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2B4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F97
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F97#FFFFFF#000000##FFFFFF
##2B4F971.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#114D96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b4f97;
/* rgb */ color: rgb(43, 79, 151);
/* oklch */ color: oklch(44.1% 0.125 262.5);
Tailwind
colors: {
  custom: {
    50: '#727fb6',
    500: '#2b4f97',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f97;
$custom-light: #727fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f97",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 220,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44108,
    "c": 0.12522,
    "h": 262.5
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#2B4F97
secondary
#BB9D63
accent
#AD49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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