#2857BC#2857BC

#2857BC is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.168 H 262.9°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#2857BC
RGBrgb(40, 87, 188)
HSLhsl(221, 65%, 45%)
HSVhsv(221, 79%, 74%)
CMYKcmyk(78.7%, 53.7%, 0%, 26.3%)
CIE-LABlab(39.41, 21.13, -57.70)
CIE-LCHlch(39.41, 61.45, 290.12°)
OKLaboklab(48.5% -0.0207 -0.1663)
OKLCHoklch(48.5% 0.168 262.9)
XYZxyz(13.3571, 10.8968, 48.9665)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857BC #BC8D28
analogous
#28A1BC #2857BC #4328BC
triadic
#2857BC #BC2857 #57BC28
tetradic
#2857BC #BC28A1 #BC8D28 #28BC43
square
#2857BC #BC28A1 #BC8D28 #28BC43
split-complementary
#2857BC #BC4328 #A1BC28
monochromatic
#132857 #1D408A #2857BC #4976D8 #7B9CE3

Accessibility & contrast

On white

6.60
#2857BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2857BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857BC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857BC#FFFFFF#000000##FFFFFF
##2857BC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0264C0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2857bc;
/* rgb */ color: rgb(40, 87, 188);
/* oklch */ color: oklch(48.5% 0.168 262.9);
Tailwind
colors: {
  custom: {
    50: '#7985d1',
    500: '#2857bc',
    950: '#000000',
  },
}
SCSS
$custom: #2857bc;
$custom-light: #7985d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2857bc",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 220.946,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48503,
    "c": 0.16763,
    "h": 262.9
  },
  "luminance": 0.10898
}

Semantic roles & 50–950 ramp

primary
#2857BC
secondary
#CBB075
accent
#B340E8
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2857BC

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

Preview Lab → · Contrast checker → · Palette generator →

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