#2F57BB#2F57BB

#2F57BB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.164 H 264.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#2F57BB
RGBrgb(47, 87, 187)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(74.9%, 53.5%, 0%, 26.7%)
CIE-LABlab(39.59, 21.56, -56.80)
CIE-LCHlch(39.59, 60.76, 290.78°)
OKLaboklab(48.69% -0.0155 -0.1636)
OKLCHoklch(48.69% 0.164 264.6)
XYZxyz(13.5470, 11.0071, 48.4147)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57BB #BB932F
analogous
#2F9DBB #2F57BB #4D2FBB
triadic
#2F57BB #BB2F57 #57BB2F
tetradic
#2F57BB #BB2F9D #BB932F #2FBB4D
square
#2F57BB #BB2F9D #BB932F #2FBB4D
split-complementary
#2F57BB #BB4D2F #9DBB2F
monochromatic
#162959 #23408A #2F57BB #5378D4 #849FE0

Accessibility & contrast

On white

6.56
#2F57BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F57BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57BB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57BB#FFFFFF#000000##FFFFFF
##2F57BB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0964BF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57bb;
/* rgb */ color: rgb(47, 87, 187);
/* oklch */ color: oklch(48.7% 0.164 264.6);
Tailwind
colors: {
  custom: {
    50: '#7b85d0',
    500: '#2f57bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f57bb;
$custom-light: #7b85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57bb",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 222.857,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48694,
    "c": 0.16433,
    "h": 264.6
  },
  "luminance": 0.11009
}

Semantic roles & 50–950 ramp

primary
#2F57BB
secondary
#C9B37C
accent
#B645E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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