#2B5FB2#2B5FB2

#2B5FB2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.143 H 259.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB2
RGBrgb(43, 95, 178)
HSLhsl(217, 61%, 43%)
HSVhsv(217, 76%, 70%)
CMYKcmyk(75.8%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.07, 12.41, -49.14)
CIE-LCHlch(41.07, 50.69, 284.17°)
OKLaboklab(49.59% -0.0262 -0.141)
OKLCHoklch(49.59% 0.143 259.5)
XYZxyz(13.1214, 11.9109, 43.7183)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB2 #B27E2B
analogous
#2BA2B2 #2B5FB2 #3A2BB2
triadic
#2B5FB2 #B22B5F #5FB22B
tetradic
#2B5FB2 #B22BA2 #B27E2B #2BB23A
square
#2B5FB2 #B22BA2 #B27E2B #2BB23A
split-complementary
#2B5FB2 #B23A2B #A2B22B
monochromatic
#132A4F #1F4581 #2B5FB2 #487DD3 #79A0DF

Accessibility & contrast

On white

6.21
#2B5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2B5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB2#FFFFFF#000000##FFFFFF
##2B5FB21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B5
Deuteranopia (green-blind)
#125BB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5fb2;
/* rgb */ color: rgb(43, 95, 178);
/* oklch */ color: oklch(49.6% 0.143 259.5);
Tailwind
colors: {
  custom: {
    50: '#778bc9',
    500: '#2b5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb2;
$custom-light: #778bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb2",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 216.889,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49588,
    "c": 0.14339,
    "h": 259.5
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#2B5FB2
secondary
#C7A672
accent
#A644E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2B5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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