#2F56BF#2F56BF

#2F56BF is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.8% C 0.171 H 265.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2F56BF
RGBrgb(47, 86, 191)
HSLhsl(224, 61%, 47%)
HSVhsv(224, 75%, 75%)
CMYKcmyk(75.4%, 55%, 0%, 25.1%)
CIE-LABlab(39.61, 23.72, -59.10)
CIE-LCHlch(39.61, 63.69, 291.86°)
OKLaboklab(48.8% -0.0145 -0.1704)
OKLCHoklch(48.8% 0.171 265.1)
XYZxyz(13.9007, 11.0200, 50.6746)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56BF #BF982F
analogous
#2F9EBF #2F56BF #502FBF
triadic
#2F56BF #BF2F56 #56BF2F
tetradic
#2F56BF #BF2F9E #BF982F #2FBF50
square
#2F56BF #BF2F9E #BF982F #2FBF50
split-complementary
#2F56BF #BF502F #9EBF2F
monochromatic
#172A5D #23408E #2F56BF #5678D5 #879FE1

Accessibility & contrast

On white

6.55
#2F56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56BF
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56BF#FFFFFF#000000##FFFFFF
##2F56BF1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f56bf;
/* rgb */ color: rgb(47, 86, 191);
/* oklch */ color: oklch(48.8% 0.171 265.1);
Tailwind
colors: {
  custom: {
    50: '#7c85d3',
    500: '#2f56bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f56bf;
$custom-light: #7c85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56bf",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 223.75,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48802,
    "c": 0.17099,
    "h": 265.1
  },
  "luminance": 0.11022
}

Semantic roles & 50–950 ramp

primary
#2F56BF
secondary
#CBB67F
accent
#B844E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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