#2F56BE#2F56BE

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

Color values

HEX#2F56BE
RGBrgb(47, 86, 190)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 75%)
CMYKcmyk(75.3%, 54.7%, 0%, 25.5%)
CIE-LABlab(39.54, 23.34, -58.64)
CIE-LCHlch(39.54, 63.12, 291.70°)
OKLaboklab(48.72% -0.0145 -0.169)
OKLCHoklch(48.72% 0.17 265.1)
XYZxyz(13.7911, 10.9761, 50.0970)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56BE #BE972F
analogous
#2F9EBE #2F56BE #4F2FBE
triadic
#2F56BE #BE2F56 #56BE2F
tetradic
#2F56BE #BE2F9E #BE972F #2FBE4F
square
#2F56BE #BE2F9E #BE972F #2FBE4F
split-complementary
#2F56BE #BE4F2F #9EBE2F
monochromatic
#172A5C #23408D #2F56BE #5578D5 #869FE1

Accessibility & contrast

On white

6.57
#2F56BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F56BE
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56BE#FFFFFF#000000##FFFFFF
##2F56BE1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#006F81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f56be;
/* rgb */ color: rgb(47, 86, 190);
/* oklch */ color: oklch(48.7% 0.170 265.1);
Tailwind
colors: {
  custom: {
    50: '#7c85d2',
    500: '#2f56be',
    950: '#000000',
  },
}
SCSS
$custom: #2f56be;
$custom-light: #7c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56be",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 223.636,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48723,
    "c": 0.16964,
    "h": 265.1
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#2F56BE
secondary
#CBB67E
accent
#B844E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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