#2F57B4#2F57B4

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

Color values

HEX#2F57B4
RGBrgb(47, 87, 180)
HSLhsl(222, 59%, 45%)
HSVhsv(222, 74%, 71%)
CMYKcmyk(73.9%, 51.7%, 0%, 29.4%)
CIE-LABlab(39.10, 18.91, -53.50)
CIE-LCHlch(39.10, 56.74, 289.47°)
OKLaboklab(48.16% -0.0162 -0.1539)
OKLCHoklch(48.16% 0.155 264)
XYZxyz(12.8158, 10.7146, 44.5639)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B4 #B48C2F
analogous
#2F9AB4 #2F57B4 #4A2FB4
triadic
#2F57B4 #B42F57 #57B42F
tetradic
#2F57B4 #B42F9A #B48C2F #2FB44A
square
#2F57B4 #B42F9A #B48C2F #2FB44A
split-complementary
#2F57B4 #B44A2F #9AB42F
monochromatic
#162853 #224083 #2F57B4 #4F76D1 #809CDE

Accessibility & contrast

On white

6.68
#2F57B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F57B4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B4#FFFFFF#000000##FFFFFF
##2F57B41.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B7
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f57b4;
/* rgb */ color: rgb(47, 87, 180);
/* oklch */ color: oklch(48.2% 0.155 264.0);
Tailwind
colors: {
  custom: {
    50: '#7a85cb',
    500: '#2f57b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b4;
$custom-light: #7a85cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b4",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 180
  },
  "hsl": {
    "h": 221.955,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48159,
    "c": 0.15473,
    "h": 264
  },
  "luminance": 0.10716
}

Semantic roles & 50–950 ramp

primary
#2F57B4
secondary
#C7AF78
accent
#B346E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57B4

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

Preview Lab → · Contrast checker → · Palette generator →

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