#2F56B9#2F56B9

#2F56B9 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.163 H 264.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2F56B9
RGBrgb(47, 86, 185)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(74.6%, 53.5%, 0%, 27.5%)
CIE-LABlab(39.18, 21.46, -56.31)
CIE-LCHlch(39.18, 60.26, 290.86°)
OKLaboklab(48.33% -0.0149 -0.1621)
OKLCHoklch(48.33% 0.163 264.7)
XYZxyz(13.2539, 10.7612, 47.2681)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B9 #B9922F
analogous
#2F9BB9 #2F56B9 #4D2FB9
triadic
#2F56B9 #B92F56 #56B92F
tetradic
#2F56B9 #B92F9B #B9922F #2FB94D
square
#2F56B9 #B92F9B #B9922F #2FB94D
split-complementary
#2F56B9 #B94D2F #9BB92F
monochromatic
#162957 #233F88 #2F56B9 #5277D3 #839DDF

Accessibility & contrast

On white

6.66
#2F56B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2F56B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B9#FFFFFF#000000##FFFFFF
##2F56B91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A63BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56b9;
/* rgb */ color: rgb(47, 86, 185);
/* oklch */ color: oklch(48.3% 0.163 264.7);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#2f56b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b9;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b9",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 185
  },
  "hsl": {
    "h": 223.043,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48332,
    "c": 0.16284,
    "h": 264.7
  },
  "luminance": 0.10763
}

Semantic roles & 50–950 ramp

primary
#2F56B9
secondary
#C9B37B
accent
#B645E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F56B9

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

Preview Lab → · Contrast checker → · Palette generator →

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