#2B5FA8#2B5FA8

#2B5FA8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.130 H 257.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2B5FA8
RGBrgb(43, 95, 168)
HSLhsl(215, 59%, 41%)
HSVhsv(215, 74%, 66%)
CMYKcmyk(74.4%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.45, 8.59, -44.25)
CIE-LCHlch(40.45, 45.07, 280.98°)
OKLaboklab(48.9% -0.0281 -0.1266)
OKLCHoklch(48.9% 0.13 257.5)
XYZxyz(12.1538, 11.5238, 38.6220)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FA8 #A8742B
analogous
#2B9EA8 #2B5FA8 #362BA8
triadic
#2B5FA8 #A82B5F #5FA82B
tetradic
#2B5FA8 #A82B9E #A8742B #2BA836
square
#2B5FA8 #A82B9E #A8742B #2BA836
split-complementary
#2B5FA8 #A8362B #9EA82B
monochromatic
#122847 #1F4377 #2B5FA8 #427CCF #729EDB

Accessibility & contrast

On white

6.35
#2B5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2B5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FA8
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FA8#FFFFFF#000000##FFFFFF
##2B5FA81.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#255AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2b5fa8;
/* rgb */ color: rgb(43, 95, 168);
/* oklch */ color: oklch(48.9% 0.130 257.5);
Tailwind
colors: {
  custom: {
    50: '#758bc2',
    500: '#2b5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fa8;
$custom-light: #758bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fa8",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 215.04,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48904,
    "c": 0.12967,
    "h": 257.5
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#2B5FA8
secondary
#C29F6C
accent
#A145E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2B5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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