#2F56B3#2F56B3

#2F56B3 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.155 H 264.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2F56B3
RGBrgb(47, 86, 179)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 74%, 70%)
CMYKcmyk(73.7%, 52%, 0%, 29.8%)
CIE-LABlab(38.75, 19.19, -53.47)
CIE-LCHlch(38.75, 56.81, 289.74°)
OKLaboklab(47.87% -0.0155 -0.1538)
OKLCHoklch(47.87% 0.155 264.2)
XYZxyz(12.6339, 10.5132, 44.0025)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B3 #B38C2F
analogous
#2F98B3 #2F56B3 #4A2FB3
triadic
#2F56B3 #B32F56 #56B32F
tetradic
#2F56B3 #B32F98 #B38C2F #2FB34A
square
#2F56B3 #B32F98 #B38C2F #2FB34A
split-complementary
#2F56B3 #B34A2F #98B32F
monochromatic
#162752 #223F83 #2F56B3 #4F75D1 #7F9BDD

Accessibility & contrast

On white

6.77
#2F56B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2F56B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B3
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B3#FFFFFF#000000##FFFFFF
##2F56B31.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1962B6
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f56b3;
/* rgb */ color: rgb(47, 86, 179);
/* oklch */ color: oklch(47.9% 0.155 264.2);
Tailwind
colors: {
  custom: {
    50: '#7985ca',
    500: '#2f56b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b3;
$custom-light: #7985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b3",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 179
  },
  "hsl": {
    "h": 222.273,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47872,
    "c": 0.15459,
    "h": 264.2
  },
  "luminance": 0.10515
}

Semantic roles & 50–950 ramp

primary
#2F56B3
secondary
#C6AF78
accent
#B446E2
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56B3

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

Preview Lab → · Contrast checker → · Palette generator →

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