#2F5FBF#2F5FBF

#2F5FBF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.160 H 262.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2F5FBF
RGBrgb(47, 95, 191)
HSLhsl(220, 61%, 47%)
HSVhsv(220, 75%, 75%)
CMYKcmyk(75.4%, 50.3%, 0%, 25.1%)
CIE-LABlab(42.08, 17.85, -55.12)
CIE-LCHlch(42.08, 57.94, 287.94°)
OKLaboklab(50.67% -0.0215 -0.1585)
OKLCHoklch(50.67% 0.16 262.3)
XYZxyz(14.6651, 12.5487, 50.9294)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FBF #BF8F2F
analogous
#2FA7BF #2F5FBF #472FBF
triadic
#2F5FBF #BF2F5F #5FBF2F
tetradic
#2F5FBF #BF2FA7 #BF8F2F #2FBF47
square
#2F5FBF #BF2FA7 #BF8F2F #2FBF47
split-complementary
#2F5FBF #BF472F #A7BF2F
monochromatic
#172E5D #23478E #2F5FBF #5680D5 #87A5E1

Accessibility & contrast

On white

5.98
#2F5FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2F5FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FBF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FBF#FFFFFF#000000##FFFFFF
##2F5FBF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246AC2
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5fbf;
/* rgb */ color: rgb(47, 95, 191);
/* oklch */ color: oklch(50.7% 0.160 262.3);
Tailwind
colors: {
  custom: {
    50: '#7c8bd3',
    500: '#2f5fbf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fbf;
$custom-light: #7c8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fbf",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 220,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50671,
    "c": 0.15995,
    "h": 262.3
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#2F5FBF
secondary
#CBB27F
accent
#AE44E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2F5FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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