#2B4791#2B4791

#2B4791 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.127 H 265.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2B4791
RGBrgb(43, 71, 145)
HSLhsl(224, 54%, 37%)
HSVhsv(224, 70%, 57%)
CMYKcmyk(70.3%, 51%, 0%, 43.1%)
CIE-LABlab(31.95, 15.66, -44.06)
CIE-LCHlch(31.95, 46.76, 289.57°)
OKLaboklab(41.89% -0.0097 -0.1264)
OKLCHoklch(41.89% 0.127 265.6)
XYZxyz(8.3585, 7.0636, 27.7055)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4791 #91752B
analogous
#2B7A91 #2B4791 #422B91
triadic
#2B4791 #912B47 #47912B
tetradic
#2B4791 #912B7A #91752B #2B9142
square
#2B4791 #912B7A #91752B #2B9142
split-complementary
#2B4791 #91422B #7A912B
monochromatic
#0F1933 #1D3062 #2B4791 #395EC0 #6583D1

Accessibility & contrast

On white

8.70
#2B4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2B4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4791
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4791#FFFFFF#000000##FFFFFF
##2B47911.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5094
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b4791;
/* rgb */ color: rgb(43, 71, 145);
/* oklch */ color: oklch(41.9% 0.127 265.6);
Tailwind
colors: {
  custom: {
    50: '#7179b2',
    500: '#2b4791',
    950: '#000000',
  },
}
SCSS
$custom: #2b4791;
$custom-light: #7179b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4791",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 223.529,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.12682,
    "h": 265.6
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#2B4791
secondary
#B8A060
accent
#B54ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2B4791

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

Preview Lab → · Contrast checker → · Palette generator →

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