#2F57B5#2F57B5

#2F57B5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.2% C 0.156 H 264.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2F57B5
RGBrgb(47, 87, 181)
HSLhsl(222, 59%, 45%)
HSVhsv(222, 74%, 71%)
CMYKcmyk(74%, 51.9%, 0%, 29%)
CIE-LABlab(39.17, 19.29, -53.98)
CIE-LCHlch(39.17, 57.32, 289.67°)
OKLaboklab(48.23% -0.0161 -0.1553)
OKLCHoklch(48.23% 0.156 264.1)
XYZxyz(12.9180, 10.7555, 45.1023)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B5 #B58D2F
analogous
#2F9AB5 #2F57B5 #4A2FB5
triadic
#2F57B5 #B52F57 #57B52F
tetradic
#2F57B5 #B52F9A #B58D2F #2FB54A
square
#2F57B5 #B52F9A #B58D2F #2FB54A
split-complementary
#2F57B5 #B54A2F #9AB52F
monochromatic
#162854 #224084 #2F57B5 #5076D1 #809CDE

Accessibility & contrast

On white

6.66
#2F57B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2F57B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B5#FFFFFF#000000##FFFFFF
##2F57B51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1963B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f57b5;
/* rgb */ color: rgb(47, 87, 181);
/* oklch */ color: oklch(48.2% 0.156 264.1);
Tailwind
colors: {
  custom: {
    50: '#7a85cc',
    500: '#2f57b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b5;
$custom-light: #7a85cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b5",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 181
  },
  "hsl": {
    "h": 222.09,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48234,
    "c": 0.15611,
    "h": 264.1
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F57B5

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

Preview Lab → · Contrast checker → · Palette generator →

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