#2F56B8#2F56B8

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

Color values

HEX#2F56B8
RGBrgb(47, 86, 184)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 72%)
CMYKcmyk(74.5%, 53.3%, 0%, 27.8%)
CIE-LABlab(39.10, 21.08, -55.84)
CIE-LCHlch(39.10, 59.68, 290.68°)
OKLaboklab(48.26% -0.015 -0.1608)
OKLCHoklch(48.26% 0.161 264.7)
XYZxyz(13.1487, 10.7192, 46.7141)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B8 #B8912F
analogous
#2F9AB8 #2F56B8 #4D2FB8
triadic
#2F56B8 #B82F56 #56B82F
tetradic
#2F56B8 #B82F9A #B8912F #2FB84D
square
#2F56B8 #B82F9A #B8912F #2FB84D
split-complementary
#2F56B8 #B84D2F #9AB82F
monochromatic
#162857 #233F87 #2F56B8 #5276D3 #829DDF

Accessibility & contrast

On white

6.68
#2F56B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F56B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B8#FFFFFF#000000##FFFFFF
##2F56B81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D63BB
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56b8;
/* rgb */ color: rgb(47, 86, 184);
/* oklch */ color: oklch(48.3% 0.161 264.7);
Tailwind
colors: {
  custom: {
    50: '#7b85ce',
    500: '#2f56b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b8;
$custom-light: #7b85ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b8",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 184
  },
  "hsl": {
    "h": 222.92,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48255,
    "c": 0.16147,
    "h": 264.7
  },
  "luminance": 0.10721
}

Semantic roles & 50–950 ramp

primary
#2F56B8
secondary
#C8B27B
accent
#B645E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F56B8

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

Preview Lab → · Contrast checker → · Palette generator →

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