#2B4CBA#2B4CBA

#2B4CBA is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.178 H 266.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2B4CBA
RGBrgb(43, 76, 186)
HSLhsl(226, 62%, 45%)
HSVhsv(226, 77%, 73%)
CMYKcmyk(76.9%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.42, 27.93, -61.39)
CIE-LCHlch(36.42, 67.44, 294.47°)
OKLaboklab(46.24% -0.0108 -0.1773)
OKLCHoklch(46.24% 0.178 266.5)
XYZxyz(12.4405, 9.2262, 47.5700)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4CBA #BA992B
analogous
#2B93BA #2B4CBA #522BBA
triadic
#2B4CBA #BA2B4C #4CBA2B
tetradic
#2B4CBA #BA2B93 #BA992B #2BBA52
square
#2B4CBA #BA2B93 #BA992B #2BBA52
split-complementary
#2B4CBA #BA522B #93BA2B
monochromatic
#142357 #203888 #2B4CBA #4C6CD6 #7E95E1

Accessibility & contrast

On white

7.38
#2B4CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2B4CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4CBA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4CBA#FFFFFF#000000##FFFFFF
##2B4CBA1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2b4cba;
/* rgb */ color: rgb(43, 76, 186);
/* oklch */ color: oklch(46.2% 0.178 266.5);
Tailwind
colors: {
  custom: {
    50: '#7a7dd0',
    500: '#2b4cba',
    950: '#000000',
  },
}
SCSS
$custom: #2b4cba;
$custom-light: #7a7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4cba",
  "rgb": {
    "r": 43,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 226.154,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.17764,
    "h": 266.5
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#2B4CBA
secondary
#CAB777
accent
#C042E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2B4CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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