#2B5FB9#2B5FB9

#2B5FB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.153 H 260.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB9
RGBrgb(43, 95, 185)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(76.8%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.53, 15.08, -52.51)
CIE-LCHlch(41.53, 54.63, 286.03°)
OKLaboklab(50.09% -0.0251 -0.1509)
OKLCHoklch(50.09% 0.153 260.6)
XYZxyz(13.8423, 12.1992, 47.5147)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB9 #B9852B
analogous
#2BA6B9 #2B5FB9 #3E2BB9
triadic
#2B5FB9 #B92B5F #5FB92B
tetradic
#2B5FB9 #B92BA6 #B9852B #2BB93E
square
#2B5FB9 #B92BA6 #B9852B #2BB93E
split-complementary
#2B5FB9 #B93E2B #A6B92B
monochromatic
#142C56 #1F4687 #2B5FB9 #4C7ED5 #7EA2E1

Accessibility & contrast

On white

6.10
#2B5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2B5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB9#FFFFFF#000000##FFFFFF
##2B5FB91.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5fb9;
/* rgb */ color: rgb(43, 95, 185);
/* oklch */ color: oklch(50.1% 0.153 260.6);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2b5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb9;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb9",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 218.028,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50086,
    "c": 0.15294,
    "h": 260.6
  },
  "luminance": 0.12201
}

Semantic roles & 50–950 ramp

primary
#2B5FB9
secondary
#C9AB76
accent
#AA42E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2B5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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