#2B4ABA#2B4ABA

#2B4ABA is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.180 H 267.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2B4ABA
RGBrgb(43, 74, 186)
HSLhsl(227, 62%, 45%)
HSVhsv(227, 77%, 73%)
CMYKcmyk(76.9%, 60.2%, 0%, 27.1%)
CIE-LABlab(35.90, 29.24, -62.23)
CIE-LCHlch(35.90, 68.76, 295.17°)
OKLaboklab(45.85% -0.0095 -0.1798)
OKLCHoklch(45.85% 0.18 267)
XYZxyz(12.3049, 8.9549, 47.5248)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4ABA #BA9B2B
analogous
#2B91BA #2B4ABA #542BBA
triadic
#2B4ABA #BA2B4A #4ABA2B
tetradic
#2B4ABA #BA2B91 #BA9B2B #2BBA54
square
#2B4ABA #BA2B91 #BA9B2B #2BBA54
split-complementary
#2B4ABA #BA542B #91BA2B
monochromatic
#142257 #203688 #2B4ABA #4C6AD6 #7E94E1

Accessibility & contrast

On white

7.52
#2B4ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4ABA
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4ABA#FFFFFF#000000##FFFFFF
##2B4ABA1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b4aba;
/* rgb */ color: rgb(43, 74, 186);
/* oklch */ color: oklch(45.8% 0.180 267.0);
Tailwind
colors: {
  custom: {
    50: '#7a7cd0',
    500: '#2b4aba',
    950: '#000000',
  },
}
SCSS
$custom: #2b4aba;
$custom-light: #7a7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4aba",
  "rgb": {
    "r": 43,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 226.993,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45848,
    "c": 0.18007,
    "h": 267
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#2B4ABA
secondary
#CAB877
accent
#C242E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2B4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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