#2F56B6#2F56B6

#2F56B6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.159 H 264.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2F56B6
RGBrgb(47, 86, 182)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 71%)
CMYKcmyk(74.2%, 52.7%, 0%, 28.6%)
CIE-LABlab(38.96, 20.32, -54.89)
CIE-LCHlch(38.96, 58.54, 290.32°)
OKLaboklab(48.1% -0.0152 -0.158)
OKLCHoklch(48.1% 0.159 264.5)
XYZxyz(12.9406, 10.6359, 45.6178)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B6 #B68F2F
analogous
#2F99B6 #2F56B6 #4C2FB6
triadic
#2F56B6 #B62F56 #56B62F
tetradic
#2F56B6 #B62F99 #B68F2F #2FB64C
square
#2F56B6 #B62F99 #B68F2F #2FB64C
split-complementary
#2F56B6 #B64C2F #99B62F
monochromatic
#162855 #223F85 #2F56B6 #5076D2 #819CDE

Accessibility & contrast

On white

6.71
#2F56B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F56B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B6
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B6#FFFFFF#000000##FFFFFF
##2F56B61.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56b6;
/* rgb */ color: rgb(47, 86, 182);
/* oklch */ color: oklch(48.1% 0.159 264.5);
Tailwind
colors: {
  custom: {
    50: '#7a85cd',
    500: '#2f56b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b6;
$custom-light: #7a85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b6",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 182
  },
  "hsl": {
    "h": 222.667,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48101,
    "c": 0.15873,
    "h": 264.5
  },
  "luminance": 0.10637
}

Semantic roles & 50–950 ramp

primary
#2F56B6
secondary
#C7B179
accent
#B546E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #2F56B6

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

Preview Lab → · Contrast checker → · Palette generator →

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