#2F5FB1#2F5FB1

#2F5FB1 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.141 H 260.4°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB1
RGBrgb(47, 95, 177)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(73.4%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.16, 12.55, -48.42)
CIE-LCHlch(41.16, 50.02, 284.54°)
OKLaboklab(49.67% -0.0235 -0.1388)
OKLCHoklch(49.67% 0.141 260.4)
XYZxyz(13.1974, 11.9616, 43.1997)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB1 #B1812F
analogous
#2FA0B1 #2F5FB1 #402FB1
triadic
#2F5FB1 #B12F5F #5FB12F
tetradic
#2F5FB1 #B12FA0 #B1812F #2FB140
square
#2F5FB1 #B12FA0 #B1812F #2FB140
split-complementary
#2F5FB1 #B1402F #A0B12F
monochromatic
#152B50 #224581 #2F5FB1 #4D7ED0 #7EA1DD

Accessibility & contrast

On white

6.19
#2F5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2F5FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB1
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB1#FFFFFF#000000##FFFFFF
##2F5FB11.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5fb1;
/* rgb */ color: rgb(47, 95, 177);
/* oklch */ color: oklch(49.7% 0.141 260.4);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#2f5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb1;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb1",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 217.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49671,
    "c": 0.14076,
    "h": 260.4
  },
  "luminance": 0.11963
}

Semantic roles & 50–950 ramp

primary
#2F5FB1
secondary
#C5A876
accent
#A847E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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