#2F56BC#2F56BC

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

Color values

HEX#2F56BC
RGBrgb(47, 86, 188)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 74%)
CMYKcmyk(75%, 54.3%, 0%, 26.3%)
CIE-LABlab(39.39, 22.59, -57.71)
CIE-LCHlch(39.39, 61.97, 291.38°)
OKLaboklab(48.57% -0.0147 -0.1663)
OKLCHoklch(48.57% 0.167 265)
XYZxyz(13.5740, 10.8893, 48.9537)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56BC #BC952F
analogous
#2F9CBC #2F56BC #4E2FBC
triadic
#2F56BC #BC2F56 #56BC2F
tetradic
#2F56BC #BC2F9C #BC952F #2FBC4E
square
#2F56BC #BC2F9C #BC952F #2FBC4E
split-complementary
#2F56BC #BC4E2F #9CBC2F
monochromatic
#17295A #23408B #2F56BC #5477D4 #859EE0

Accessibility & contrast

On white

6.61
#2F56BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2F56BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56BC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56BC#FFFFFF#000000##FFFFFF
##2F56BC1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f56bc;
/* rgb */ color: rgb(47, 86, 188);
/* oklch */ color: oklch(48.6% 0.167 265.0);
Tailwind
colors: {
  custom: {
    50: '#7b85d1',
    500: '#2f56bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f56bc;
$custom-light: #7b85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56bc",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 223.404,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48566,
    "c": 0.16693,
    "h": 265
  },
  "luminance": 0.10891
}

Semantic roles & 50–950 ramp

primary
#2F56BC
secondary
#CAB57D
accent
#B745E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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