#2F5FBC#2F5FBC

#2F5FBC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.156 H 261.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#2F5FBC
RGBrgb(47, 95, 188)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 74%)
CMYKcmyk(75%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.87, 16.72, -53.70)
CIE-LCHlch(41.87, 56.24, 287.29°)
OKLaboklab(50.45% -0.0218 -0.1543)
OKLCHoklch(50.45% 0.156 261.9)
XYZxyz(14.3383, 12.4180, 49.2084)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FBC #BC8C2F
analogous
#2FA5BC #2F5FBC #452FBC
triadic
#2F5FBC #BC2F5F #5FBC2F
tetradic
#2F5FBC #BC2FA5 #BC8C2F #2FBC45
square
#2F5FBC #BC2FA5 #BC8C2F #2FBC45
split-complementary
#2F5FBC #BC452F #A5BC2F
monochromatic
#172E5A #23468B #2F5FBC #5480D4 #85A4E0

Accessibility & contrast

On white

6.03
#2F5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5FBC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FBC#FFFFFF#000000##FFFFFF
##2F5FBC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296ABF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5fbc;
/* rgb */ color: rgb(47, 95, 188);
/* oklch */ color: oklch(50.5% 0.156 261.9);
Tailwind
colors: {
  custom: {
    50: '#7b8bd1',
    500: '#2f5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fbc;
$custom-light: #7b8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fbc",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 219.574,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50451,
    "c": 0.15586,
    "h": 261.9
  },
  "luminance": 0.1242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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