#2B5FBC#2B5FBC

#2B5FBC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.157 H 261.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#2B5FBC
RGBrgb(43, 95, 188)
HSLhsl(218, 63%, 45%)
HSVhsv(218, 77%, 74%)
CMYKcmyk(77.1%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.73, 16.23, -53.94)
CIE-LCHlch(41.73, 56.33, 286.75°)
OKLaboklab(50.3% -0.0247 -0.1551)
OKLCHoklch(50.3% 0.157 261)
XYZxyz(14.1623, 12.3272, 49.2002)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FBC #BC882B
analogous
#2BA7BC #2B5FBC #402BBC
triadic
#2B5FBC #BC2B5F #5FBC2B
tetradic
#2B5FBC #BC2BA7 #BC882B #2BBC40
square
#2B5FBC #BC2BA7 #BC882B #2BBC40
split-complementary
#2B5FBC #BC402B #A7BC2B
monochromatic
#142D58 #20468A #2B5FBC #4E7FD6 #80A3E2

Accessibility & contrast

On white

6.06
#2B5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2B5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FBC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FBC#FFFFFF#000000##FFFFFF
##2B5FBC1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5fbc;
/* rgb */ color: rgb(43, 95, 188);
/* oklch */ color: oklch(50.3% 0.157 261.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bd1',
    500: '#2b5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fbc;
$custom-light: #7a8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fbc",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 218.483,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50304,
    "c": 0.15702,
    "h": 261
  },
  "luminance": 0.12329
}

Semantic roles & 50–950 ramp

primary
#2B5FBC
secondary
#CBAD78
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2B5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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