#2B4FA8#2B4FA8

#2B4FA8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.149 H 264.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2B4FA8
RGBrgb(43, 79, 168)
HSLhsl(223, 59%, 41%)
HSVhsv(223, 74%, 66%)
CMYKcmyk(74.4%, 53%, 0%, 34.1%)
CIE-LABlab(35.85, 19.11, -51.65)
CIE-LCHlch(35.85, 55.07, 290.30°)
OKLaboklab(45.38% -0.0142 -0.1486)
OKLCHoklch(45.38% 0.149 264.6)
XYZxyz(10.8576, 8.9315, 38.1899)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4FA8 #A8842B
analogous
#2B8EA8 #2B4FA8 #462BA8
triadic
#2B4FA8 #A82B4F #4FA82B
tetradic
#2B4FA8 #A82B8E #A8842B #2BA846
square
#2B4FA8 #A82B8E #A8842B #2BA846
split-complementary
#2B4FA8 #A8462B #8EA82B
monochromatic
#122147 #1F3877 #2B4FA8 #426ACF #7291DB

Accessibility & contrast

On white

7.54
#2B4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2B4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4FA8
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4FA8#FFFFFF#000000##FFFFFF
##2B4FA81.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b4fa8;
/* rgb */ color: rgb(43, 79, 168);
/* oklch */ color: oklch(45.4% 0.149 264.6);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2b4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2b4fa8;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4fa8",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 222.72,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.1493,
    "h": 264.6
  },
  "luminance": 0.08933
}

Semantic roles & 50–950 ramp

primary
#2B4FA8
secondary
#C2AA6C
accent
#B545E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2B4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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