#2F56C2#2F56C2

#2F56C2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.175 H 265.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2F56C2
RGBrgb(47, 86, 194)
HSLhsl(224, 61%, 47%)
HSVhsv(224, 76%, 76%)
CMYKcmyk(75.8%, 55.7%, 0%, 23.9%)
CIE-LABlab(39.84, 24.84, -60.49)
CIE-LCHlch(39.84, 65.39, 292.33°)
OKLaboklab(49.04% -0.0143 -0.1744)
OKLCHoklch(49.04% 0.175 265.3)
XYZxyz(14.2342, 11.1534, 52.4311)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56C2 #C29B2F
analogous
#2F9FC2 #2F56C2 #522FC2
triadic
#2F56C2 #C22F56 #56C22F
tetradic
#2F56C2 #C22F9F #C29B2F #2FC252
square
#2F56C2 #C22F9F #C29B2F #2FC252
split-complementary
#2F56C2 #C2522F #9FC22F
monochromatic
#172A5F #234091 #2F56C2 #5879D6 #89A1E2

Accessibility & contrast

On white

6.50
#2F56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2F56C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56C2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56C2#FFFFFF#000000##FFFFFF
##2F56C21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f56c2;
/* rgb */ color: rgb(47, 86, 194);
/* oklch */ color: oklch(49.0% 0.175 265.3);
Tailwind
colors: {
  custom: {
    50: '#7d85d5',
    500: '#2f56c2',
    950: '#000000',
  },
}
SCSS
$custom: #2f56c2;
$custom-light: #7d85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56c2",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 224.082,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49041,
    "c": 0.17503,
    "h": 265.3
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#2F56C2
secondary
#CCB881
accent
#BA44E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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