#2F56B5#2F56B5

#2F56B5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.157 H 264.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2F56B5
RGBrgb(47, 86, 181)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 71%)
CMYKcmyk(74%, 52.5%, 0%, 29%)
CIE-LABlab(38.89, 19.95, -54.42)
CIE-LCHlch(38.89, 57.96, 290.13°)
OKLaboklab(48.02% -0.0153 -0.1566)
OKLCHoklch(48.02% 0.157 264.4)
XYZxyz(12.8376, 10.5947, 45.0755)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B5 #B58E2F
analogous
#2F99B5 #2F56B5 #4B2FB5
triadic
#2F56B5 #B52F56 #56B52F
tetradic
#2F56B5 #B52F99 #B58E2F #2FB54B
square
#2F56B5 #B52F99 #B58E2F #2FB54B
split-complementary
#2F56B5 #B54B2F #99B52F
monochromatic
#162854 #223F84 #2F56B5 #5075D1 #809CDE

Accessibility & contrast

On white

6.73
#2F56B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F56B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B5
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B5#FFFFFF#000000##FFFFFF
##2F56B51.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1562B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56b5;
/* rgb */ color: rgb(47, 86, 181);
/* oklch */ color: oklch(48.0% 0.157 264.4);
Tailwind
colors: {
  custom: {
    50: '#7a85cc',
    500: '#2f56b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b5;
$custom-light: #7a85cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b5",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 181
  },
  "hsl": {
    "h": 222.537,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48024,
    "c": 0.15735,
    "h": 264.4
  },
  "luminance": 0.10596
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F56B5

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

Preview Lab → · Contrast checker → · Palette generator →

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