#2F56BD#2F56BD

#2F56BD is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.6% C 0.168 H 265.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2F56BD
RGBrgb(47, 86, 189)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 74%)
CMYKcmyk(75.1%, 54.5%, 0%, 25.9%)
CIE-LABlab(39.47, 22.96, -58.18)
CIE-LCHlch(39.47, 62.54, 291.54°)
OKLaboklab(48.64% -0.0146 -0.1676)
OKLCHoklch(48.64% 0.168 265)
XYZxyz(13.6821, 10.9325, 49.5233)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56BD #BD962F
analogous
#2F9DBD #2F56BD #4F2FBD
triadic
#2F56BD #BD2F56 #56BD2F
tetradic
#2F56BD #BD2F9D #BD962F #2FBD4F
square
#2F56BD #BD2F9D #BD962F #2FBD4F
split-complementary
#2F56BD #BD4F2F #9DBD2F
monochromatic
#17295B #23408C #2F56BD #5578D5 #869FE1

Accessibility & contrast

On white

6.59
#2F56BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F56BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56BD
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56BD#FFFFFF#000000##FFFFFF
##2F56BD1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f56bd;
/* rgb */ color: rgb(47, 86, 189);
/* oklch */ color: oklch(48.6% 0.168 265.0);
Tailwind
colors: {
  custom: {
    50: '#7c85d2',
    500: '#2f56bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f56bd;
$custom-light: #7c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56bd",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 223.521,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48644,
    "c": 0.16829,
    "h": 265
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F56BD

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

Preview Lab → · Contrast checker → · Palette generator →

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