#2F56B7#2F56B7

#2F56B7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.160 H 264.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2F56B7
RGBrgb(47, 86, 183)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 72%)
CMYKcmyk(74.3%, 53%, 0%, 28.2%)
CIE-LABlab(39.03, 20.70, -55.37)
CIE-LCHlch(39.03, 59.11, 290.50°)
OKLaboklab(48.18% -0.0151 -0.1594)
OKLCHoklch(48.18% 0.16 264.6)
XYZxyz(13.0443, 10.6774, 46.1640)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B7 #B7902F
analogous
#2F9AB7 #2F56B7 #4C2FB7
triadic
#2F56B7 #B72F56 #56B72F
tetradic
#2F56B7 #B72F9A #B7902F #2FB74C
square
#2F56B7 #B72F9A #B7902F #2FB74C
split-complementary
#2F56B7 #B74C2F #9AB72F
monochromatic
#162856 #223F86 #2F56B7 #5176D2 #829CDF

Accessibility & contrast

On white

6.70
#2F56B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F56B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B7#FFFFFF#000000##FFFFFF
##2F56B71.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1062BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56b7;
/* rgb */ color: rgb(47, 86, 183);
/* oklch */ color: oklch(48.2% 0.160 264.6);
Tailwind
colors: {
  custom: {
    50: '#7a85cd',
    500: '#2f56b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b7;
$custom-light: #7a85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b7",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 222.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.1601,
    "h": 264.6
  },
  "luminance": 0.10679
}

Semantic roles & 50–950 ramp

primary
#2F56B7
secondary
#C8B27A
accent
#B545E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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