#2F57B2#2F57B2

#2F57B2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.152 H 263.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2F57B2
RGBrgb(47, 87, 178)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 74%, 70%)
CMYKcmyk(73.6%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.96, 18.15, -52.55)
CIE-LCHlch(38.96, 55.59, 289.06°)
OKLaboklab(48.01% -0.0165 -0.1511)
OKLCHoklch(48.01% 0.152 263.8)
XYZxyz(12.6135, 10.6337, 43.4986)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B2 #B28A2F
analogous
#2F99B2 #2F57B2 #482FB2
triadic
#2F57B2 #B22F57 #57B22F
tetradic
#2F57B2 #B22F99 #B28A2F #2FB248
square
#2F57B2 #B22F99 #B28A2F #2FB248
split-complementary
#2F57B2 #B2482F #99B22F
monochromatic
#152851 #223F82 #2F57B2 #4E76D0 #7E9BDD

Accessibility & contrast

On white

6.72
#2F57B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F57B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B2#FFFFFF#000000##FFFFFF
##2F57B21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f57b2;
/* rgb */ color: rgb(47, 87, 178);
/* oklch */ color: oklch(48.0% 0.152 263.8);
Tailwind
colors: {
  custom: {
    50: '#7985ca',
    500: '#2f57b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b2;
$custom-light: #7985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b2",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 221.679,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48009,
    "c": 0.15197,
    "h": 263.8
  },
  "luminance": 0.10635
}

Semantic roles & 50–950 ramp

primary
#2F57B2
secondary
#C6AE77
accent
#B246E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57B2

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

Preview Lab → · Contrast checker → · Palette generator →

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