#2F56C4#2F56C4

#2F56C4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.178 H 265.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2F56C4
RGBrgb(47, 86, 196)
HSLhsl(224, 61%, 48%)
HSVhsv(224, 76%, 77%)
CMYKcmyk(76%, 56.1%, 0%, 23.1%)
CIE-LABlab(39.99, 25.59, -61.41)
CIE-LCHlch(39.99, 66.53, 292.63°)
OKLaboklab(49.2% -0.0141 -0.1771)
OKLCHoklch(49.2% 0.178 265.4)
XYZxyz(14.4604, 11.2438, 53.6220)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56C4 #C49D2F
analogous
#2FA1C4 #2F56C4 #522FC4
triadic
#2F56C4 #C42F56 #56C42F
tetradic
#2F56C4 #C42FA1 #C49D2F #2FC452
square
#2F56C4 #C42FA1 #C49D2F #2FC452
split-complementary
#2F56C4 #C4522F #A1C42F
monochromatic
#172B61 #234093 #2F56C4 #597AD7 #8AA2E3

Accessibility & contrast

On white

6.46
#2F56C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2F56C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56C4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56C4#FFFFFF#000000##FFFFFF
##2F56C41.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f56c4;
/* rgb */ color: rgb(47, 86, 196);
/* oklch */ color: oklch(49.2% 0.178 265.4);
Tailwind
colors: {
  custom: {
    50: '#7d85d7',
    500: '#2f56c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f56c4;
$custom-light: #7d85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56c4",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 224.295,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49202,
    "c": 0.17771,
    "h": 265.4
  },
  "luminance": 0.11245
}

Semantic roles & 50–950 ramp

primary
#2F56C4
secondary
#CDB982
accent
#BA43E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56C4

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

Preview Lab → · Contrast checker → · Palette generator →

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