#2B5FAB#2B5FAB

#2B5FAB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.134 H 258.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2B5FAB
RGBrgb(43, 95, 171)
HSLhsl(216, 60%, 42%)
HSVhsv(216, 75%, 67%)
CMYKcmyk(74.9%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.63, 9.73, -45.73)
CIE-LCHlch(40.63, 46.75, 282.01°)
OKLaboklab(49.11% -0.0275 -0.1309)
OKLCHoklch(49.11% 0.134 258.1)
XYZxyz(12.4365, 11.6369, 40.1109)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FAB #AB772B
analogous
#2B9FAB #2B5FAB #372BAB
triadic
#2B5FAB #AB2B5F #5FAB2B
tetradic
#2B5FAB #AB2B9F #AB772B #2BAB37
square
#2B5FAB #AB2B9F #AB772B #2BAB37
split-complementary
#2B5FAB #AB372B #9FAB2B
monochromatic
#122949 #1F447A #2B5FAB #437CD0 #749EDC

Accessibility & contrast

On white

6.31
#2B5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2B5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FAB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FAB#FFFFFF#000000##FFFFFF
##2B5FAB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2b5fab;
/* rgb */ color: rgb(43, 95, 171);
/* oklch */ color: oklch(49.1% 0.134 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2b5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fab",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 215.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49106,
    "c": 0.13379,
    "h": 258.1
  },
  "luminance": 0.11638
}

Semantic roles & 50–950 ramp

primary
#2B5FAB
secondary
#C4A16E
accent
#A345E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2B5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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