#2F56D3#2F56D3

#2F56D3 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.4% C 0.197 H 266.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2F56D3
RGBrgb(47, 86, 211)
HSLhsl(226, 65%, 51%)
HSVhsv(226, 78%, 83%)
CMYKcmyk(77.7%, 59.2%, 0%, 17.3%)
CIE-LABlab(41.15, 31.17, -68.17)
CIE-LCHlch(41.15, 74.96, 294.57°)
OKLaboklab(50.44% -0.0135 -0.197)
OKLCHoklch(50.44% 0.197 266.1)
XYZxyz(16.2538, 11.9612, 63.0675)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56D3 #D3AC2F
analogous
#2FA8D3 #2F56D3 #5A2FD3
triadic
#2F56D3 #D32F56 #56D32F
tetradic
#2F56D3 #D32FA8 #D3AC2F #2FD35A
square
#2F56D3 #D32FA8 #D3AC2F #2FD35A
split-complementary
#2F56D3 #D35A2F #A8D32F
monochromatic
#182D70 #2241A2 #2F56D3 #627FDE #94A8E8

Accessibility & contrast

On white

6.19
#2F56D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2F56D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56D3
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56D3#FFFFFF#000000##FFFFFF
##2F56D31.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#00768C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f56d3;
/* rgb */ color: rgb(47, 86, 211);
/* oklch */ color: oklch(50.4% 0.197 266.1);
Tailwind
colors: {
  custom: {
    50: '#8185e1',
    500: '#2f56d3',
    950: '#000000',
  },
}
SCSS
$custom: #2f56d3;
$custom-light: #8185e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56d3",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 211
  },
  "hsl": {
    "h": 225.732,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.19749,
    "h": 266.1
  },
  "luminance": 0.11963
}

Semantic roles & 50–950 ramp

primary
#2F56D3
secondary
#D3C28A
accent
#C040E8
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2F56D3

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

Preview Lab → · Contrast checker → · Palette generator →

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