#2F5BBC#2F5BBC

#2F5BBC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.161 H 263.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2F5BBC
RGBrgb(47, 91, 188)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 74%)
CMYKcmyk(75%, 51.6%, 0%, 26.3%)
CIE-LABlab(40.76, 19.32, -55.50)
CIE-LCHlch(40.76, 58.76, 289.19°)
OKLaboklab(49.6% -0.0186 -0.1597)
OKLCHoklch(49.6% 0.161 263.4)
XYZxyz(13.9872, 11.7158, 49.0914)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BBC #BC902F
analogous
#2FA1BC #2F5BBC #4A2FBC
triadic
#2F5BBC #BC2F5B #5BBC2F
tetradic
#2F5BBC #BC2FA1 #BC902F #2FBC4A
square
#2F5BBC #BC2FA1 #BC902F #2FBC4A
split-complementary
#2F5BBC #BC4A2F #A1BC2F
monochromatic
#172C5A #23438B #2F5BBC #547CD4 #85A1E0

Accessibility & contrast

On white

6.28
#2F5BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2F5BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BBC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BBC#FFFFFF#000000##FFFFFF
##2F5BBC1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C67BF
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5bbc;
/* rgb */ color: rgb(47, 91, 188);
/* oklch */ color: oklch(49.6% 0.161 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b88d1',
    500: '#2f5bbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bbc;
$custom-light: #7b88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bbc",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 221.277,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49603,
    "c": 0.16076,
    "h": 263.4
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#2F5BBC
secondary
#CAB27D
accent
#B245E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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