#2F56B2#2F56B2

#2F56B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.153 H 264.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2F56B2
RGBrgb(47, 86, 178)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 74%, 70%)
CMYKcmyk(73.6%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.68, 18.81, -53.00)
CIE-LCHlch(38.68, 56.24, 289.54°)
OKLaboklab(47.8% -0.0156 -0.1524)
OKLCHoklch(47.8% 0.153 264.1)
XYZxyz(12.5331, 10.4729, 43.4718)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B2 #B28B2F
analogous
#2F98B2 #2F56B2 #492FB2
triadic
#2F56B2 #B22F56 #56B22F
tetradic
#2F56B2 #B22F98 #B28B2F #2FB249
square
#2F56B2 #B22F98 #B28B2F #2FB249
split-complementary
#2F56B2 #B2492F #98B22F
monochromatic
#152751 #223F82 #2F56B2 #4E75D0 #7E9BDD

Accessibility & contrast

On white

6.79
#2F56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F56B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B2#FFFFFF#000000##FFFFFF
##2F56B21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f56b2;
/* rgb */ color: rgb(47, 86, 178);
/* oklch */ color: oklch(47.8% 0.153 264.1);
Tailwind
colors: {
  custom: {
    50: '#7985ca',
    500: '#2f56b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b2;
$custom-light: #7985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b2",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 222.137,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47797,
    "c": 0.15321,
    "h": 264.1
  },
  "luminance": 0.10474
}

Semantic roles & 50–950 ramp

primary
#2F56B2
secondary
#C6AE77
accent
#B346E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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