#2B5AA1#2B5AA1

#2B5AA1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.3% C 0.126 H 258.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2B5AA1
RGBrgb(43, 90, 161)
HSLhsl(216, 58%, 40%)
HSVhsv(216, 73%, 63%)
CMYKcmyk(73.3%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.55, 9.16, -43.13)
CIE-LCHlch(38.55, 44.09, 281.99°)
OKLaboklab(47.29% -0.0249 -0.1234)
OKLCHoklch(47.29% 0.126 258.6)
XYZxyz(11.0831, 10.3979, 35.1342)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5AA1 #A1722B
analogous
#2B95A1 #2B5AA1 #372BA1
triadic
#2B5AA1 #A12B5A #5AA12B
tetradic
#2B5AA1 #A12B95 #A1722B #2BA137
square
#2B5AA1 #A12B95 #A1722B #2BA137
split-complementary
#2B5AA1 #A1372B #95A12B
monochromatic
#112440 #1E3F71 #2B5AA1 #3E76CB #6E98D8

Accessibility & contrast

On white

6.82
#2B5AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2B5AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5AA1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5AA1#FFFFFF#000000##FFFFFF
##2B5AA11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b5aa1;
/* rgb */ color: rgb(43, 90, 161);
/* oklch */ color: oklch(47.3% 0.126 258.6);
Tailwind
colors: {
  custom: {
    50: '#7488bd',
    500: '#2b5aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2b5aa1;
$custom-light: #7488bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5aa1",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 216.102,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.12587,
    "h": 258.6
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#2B5AA1
secondary
#BF9D69
accent
#A447E1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B5AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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