#2F56B1#2F56B1

#2F56B1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.152 H 264.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2F56B1
RGBrgb(47, 86, 177)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 73%, 69%)
CMYKcmyk(73.4%, 51.4%, 0%, 30.6%)
CIE-LABlab(38.61, 18.43, -52.52)
CIE-LCHlch(38.61, 55.66, 289.34°)
OKLaboklab(47.72% -0.0158 -0.151)
OKLCHoklch(47.72% 0.152 264)
XYZxyz(12.4331, 10.4329, 42.9449)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56B1 #B18A2F
analogous
#2F97B1 #2F56B1 #492FB1
triadic
#2F56B1 #B12F56 #56B12F
tetradic
#2F56B1 #B12F97 #B18A2F #2FB149
square
#2F56B1 #B12F97 #B18A2F #2FB149
split-complementary
#2F56B1 #B1492F #97B12F
monochromatic
#152750 #223F81 #2F56B1 #4D75D0 #7E9ADD

Accessibility & contrast

On white

6.80
#2F56B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F56B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56B1
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56B1#FFFFFF#000000##FFFFFF
##2F56B11.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D61B4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f56b1;
/* rgb */ color: rgb(47, 86, 177);
/* oklch */ color: oklch(47.7% 0.152 264.0);
Tailwind
colors: {
  custom: {
    50: '#7985c9',
    500: '#2f56b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f56b1;
$custom-light: #7985c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56b1",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 177
  },
  "hsl": {
    "h": 222,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47721,
    "c": 0.15183,
    "h": 264
  },
  "luminance": 0.10434
}

Semantic roles & 50–950 ramp

primary
#2F56B1
secondary
#C5AE76
accent
#B347E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56B1

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

Preview Lab → · Contrast checker → · Palette generator →

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