#2F5CBF#2F5CBF

#2F5CBF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.164 H 263.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2F5CBF
RGBrgb(47, 92, 191)
HSLhsl(221, 61%, 47%)
HSVhsv(221, 75%, 75%)
CMYKcmyk(75.4%, 51.8%, 0%, 25.1%)
CIE-LABlab(41.25, 19.80, -56.46)
CIE-LCHlch(41.25, 59.83, 289.33°)
OKLaboklab(50.04% -0.0191 -0.1625)
OKLCHoklch(50.04% 0.164 263.3)
XYZxyz(14.4001, 12.0186, 50.8410)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CBF #BF922F
analogous
#2FA4BF #2F5CBF #4A2FBF
triadic
#2F5CBF #BF2F5C #5CBF2F
tetradic
#2F5CBF #BF2FA4 #BF922F #2FBF4A
square
#2F5CBF #BF2FA4 #BF922F #2FBF4A
split-complementary
#2F5CBF #BF4A2F #A4BF2F
monochromatic
#172D5D #23448E #2F5CBF #567ED5 #87A3E1

Accessibility & contrast

On white

6.17
#2F5CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CBF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CBF#FFFFFF#000000##FFFFFF
##2F5CBF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A68C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5cbf;
/* rgb */ color: rgb(47, 92, 191);
/* oklch */ color: oklch(50.0% 0.164 263.3);
Tailwind
colors: {
  custom: {
    50: '#7c89d3',
    500: '#2f5cbf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cbf;
$custom-light: #7c89d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cbf",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 191
  },
  "hsl": {
    "h": 221.25,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50039,
    "c": 0.16362,
    "h": 263.3
  },
  "luminance": 0.1202
}

Semantic roles & 50–950 ramp

primary
#2F5CBF
secondary
#CBB37F
accent
#B244E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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