#2F57B8#2F57B8

#2F57B8 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.160 H 264.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#2F57B8
RGBrgb(47, 87, 184)
HSLhsl(222, 59%, 45%)
HSVhsv(222, 74%, 72%)
CMYKcmyk(74.5%, 52.7%, 0%, 27.8%)
CIE-LABlab(39.38, 20.42, -55.39)
CIE-LCHlch(39.38, 59.04, 290.24°)
OKLaboklab(48.46% -0.0158 -0.1594)
OKLCHoklch(48.46% 0.16 264.3)
XYZxyz(13.2292, 10.8800, 46.7409)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B8 #B8902F
analogous
#2F9BB8 #2F57B8 #4C2FB8
triadic
#2F57B8 #B82F57 #57B82F
tetradic
#2F57B8 #B82F9B #B8902F #2FB84C
square
#2F57B8 #B82F9B #B8902F #2FB84C
split-complementary
#2F57B8 #B84C2F #9BB82F
monochromatic
#162957 #234087 #2F57B8 #5277D3 #829DDF

Accessibility & contrast

On white

6.61
#2F57B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2F57B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B8#FFFFFF#000000##FFFFFF
##2F57B81.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1363BB
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57b8;
/* rgb */ color: rgb(47, 87, 184);
/* oklch */ color: oklch(48.5% 0.160 264.3);
Tailwind
colors: {
  custom: {
    50: '#7b85ce',
    500: '#2f57b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b8;
$custom-light: #7b85ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b8",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 184
  },
  "hsl": {
    "h": 222.482,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.16023,
    "h": 264.3
  },
  "luminance": 0.10881
}

Semantic roles & 50–950 ramp

primary
#2F57B8
secondary
#C8B27B
accent
#B545E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F57B8

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

Preview Lab → · Contrast checker → · Palette generator →

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