#2F5FBB#2F5FBB

#2F5FBB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.154 H 261.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2F5FBB
RGBrgb(47, 95, 187)
HSLhsl(219, 60%, 46%)
HSVhsv(219, 75%, 73%)
CMYKcmyk(74.9%, 49.2%, 0%, 26.7%)
CIE-LABlab(41.81, 16.34, -53.23)
CIE-LCHlch(41.81, 55.68, 287.06°)
OKLaboklab(50.38% -0.022 -0.1529)
OKLCHoklch(50.38% 0.154 261.8)
XYZxyz(14.2309, 12.3750, 48.6427)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FBB #BB8B2F
analogous
#2FA5BB #2F5FBB #452FBB
triadic
#2F5FBB #BB2F5F #5FBB2F
tetradic
#2F5FBB #BB2FA5 #BB8B2F #2FBB45
square
#2F5FBB #BB2FA5 #BB8B2F #2FBB45
split-complementary
#2F5FBB #BB452F #A5BB2F
monochromatic
#162D59 #23468A #2F5FBB #537FD4 #84A4E0

Accessibility & contrast

On white

6.04
#2F5FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2F5FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FBB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FBB#FFFFFF#000000##FFFFFF
##2F5FBB1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BE
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5fbb;
/* rgb */ color: rgb(47, 95, 187);
/* oklch */ color: oklch(50.4% 0.154 261.8);
Tailwind
colors: {
  custom: {
    50: '#7b8bd0',
    500: '#2f5fbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fbb;
$custom-light: #7b8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fbb",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 219.429,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50379,
    "c": 0.15449,
    "h": 261.8
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#2F5FBB
secondary
#C9AF7C
accent
#AD45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F5FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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