#2F56C0#2F56C0

#2F56C0 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.9% C 0.172 H 265.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2F56C0
RGBrgb(47, 86, 192)
HSLhsl(224, 61%, 47%)
HSVhsv(224, 76%, 75%)
CMYKcmyk(75.5%, 55.2%, 0%, 24.7%)
CIE-LABlab(39.69, 24.09, -59.57)
CIE-LCHlch(39.69, 64.26, 292.02°)
OKLaboklab(48.88% -0.0144 -0.1717)
OKLCHoklch(48.88% 0.172 265.2)
XYZxyz(14.0111, 11.0641, 51.2561)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56C0 #C0992F
analogous
#2F9FC0 #2F56C0 #512FC0
triadic
#2F56C0 #C02F56 #56C02F
tetradic
#2F56C0 #C02F9F #C0992F #2FC051
square
#2F56C0 #C02F9F #C0992F #2FC051
split-complementary
#2F56C0 #C0512F #9FC02F
monochromatic
#172A5E #23408F #2F56C0 #5679D6 #88A0E2

Accessibility & contrast

On white

6.54
#2F56C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2F56C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56C0
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56C0#FFFFFF#000000##FFFFFF
##2F56C01.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f56c0;
/* rgb */ color: rgb(47, 86, 192);
/* oklch */ color: oklch(48.9% 0.172 265.2);
Tailwind
colors: {
  custom: {
    50: '#7c85d4',
    500: '#2f56c0',
    950: '#000000',
  },
}
SCSS
$custom: #2f56c0;
$custom-light: #7c85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56c0",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 192
  },
  "hsl": {
    "h": 223.862,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48882,
    "c": 0.17234,
    "h": 265.2
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#2F56C0
secondary
#CBB77F
accent
#B944E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56C0

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

Preview Lab → · Contrast checker → · Palette generator →

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