#2857BB#2857BB

#2857BB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.4% C 0.166 H 262.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#2857BB
RGBrgb(40, 87, 187)
HSLhsl(221, 65%, 45%)
HSVhsv(221, 79%, 73%)
CMYKcmyk(78.6%, 53.5%, 0%, 26.7%)
CIE-LABlab(39.33, 20.75, -57.24)
CIE-LCHlch(39.33, 60.88, 289.93°)
OKLaboklab(48.43% -0.0207 -0.165)
OKLCHoklch(48.43% 0.166 262.8)
XYZxyz(13.2497, 10.8538, 48.4008)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857BB #BB8C28
analogous
#28A1BB #2857BB #4228BB
triadic
#2857BB #BB2857 #57BB28
tetradic
#2857BB #BB28A1 #BB8C28 #28BB42
square
#2857BB #BB28A1 #BB8C28 #28BB42
split-complementary
#2857BB #BB4228 #A1BB28
monochromatic
#122856 #1D4089 #2857BB #4876D8 #7B9CE3

Accessibility & contrast

On white

6.62
#2857BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2857BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857BB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857BB#FFFFFF#000000##FFFFFF
##2857BB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2857bb;
/* rgb */ color: rgb(40, 87, 187);
/* oklch */ color: oklch(48.4% 0.166 262.8);
Tailwind
colors: {
  custom: {
    50: '#7985d0',
    500: '#2857bb',
    950: '#000000',
  },
}
SCSS
$custom: #2857bb;
$custom-light: #7985d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2857bb",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 220.816,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48425,
    "c": 0.16628,
    "h": 262.8
  },
  "luminance": 0.10855
}

Semantic roles & 50–950 ramp

primary
#2857BB
secondary
#CBAF74
accent
#B240E8
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2857BB

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

Preview Lab → · Contrast checker → · Palette generator →

#2857BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva