#2857B6#2857B6

#2857B6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.159 H 262.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2857B6
RGBrgb(40, 87, 182)
HSLhsl(220, 64%, 44%)
HSVhsv(220, 78%, 71%)
CMYKcmyk(78%, 52.2%, 0%, 28.6%)
CIE-LABlab(38.97, 18.82, -54.89)
CIE-LCHlch(38.97, 58.02, 288.93°)
OKLaboklab(48.04% -0.0213 -0.1581)
OKLCHoklch(48.04% 0.159 262.3)
XYZxyz(12.7237, 10.6434, 45.6307)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B6 #B68728
analogous
#289EB6 #2857B6 #4028B6
triadic
#2857B6 #B62857 #57B628
tetradic
#2857B6 #B6289E #B68728 #28B640
square
#2857B6 #B6289E #B68728 #28B640
split-complementary
#2857B6 #B64028 #9EB628
monochromatic
#122752 #1D3F84 #2857B6 #4575D6 #779AE1

Accessibility & contrast

On white

6.71
#2857B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2857B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857B6
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B6#FFFFFF#000000##FFFFFF
##2857B61.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563B9
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2857b6;
/* rgb */ color: rgb(40, 87, 182);
/* oklch */ color: oklch(48.0% 0.159 262.3);
Tailwind
colors: {
  custom: {
    50: '#7885cd',
    500: '#2857b6',
    950: '#000000',
  },
}
SCSS
$custom: #2857b6;
$custom-light: #7885cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b6",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 182
  },
  "hsl": {
    "h": 220.141,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48037,
    "c": 0.15949,
    "h": 262.3
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#2857B6
secondary
#C9AC71
accent
#B041E7
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857B6

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

Preview Lab → · Contrast checker → · Palette generator →

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