#2857B7#2857B7

#2857B7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.161 H 262.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2857B7
RGBrgb(40, 87, 183)
HSLhsl(220, 64%, 44%)
HSVhsv(220, 78%, 72%)
CMYKcmyk(78.1%, 52.5%, 0%, 28.2%)
CIE-LABlab(39.04, 19.21, -55.36)
CIE-LCHlch(39.04, 58.60, 289.14°)
OKLaboklab(48.11% -0.0212 -0.1595)
OKLCHoklch(48.11% 0.161 262.4)
XYZxyz(12.8274, 10.6849, 46.1769)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B7 #B78828
analogous
#289EB7 #2857B7 #4028B7
triadic
#2857B7 #B72857 #57B728
tetradic
#2857B7 #B7289E #B78828 #28B740
square
#2857B7 #B7289E #B78828 #28B740
split-complementary
#2857B7 #B74028 #9EB728
monochromatic
#122753 #1D3F85 #2857B7 #4675D6 #789BE1

Accessibility & contrast

On white

6.69
#2857B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2857B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857B7
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B7#FFFFFF#000000##FFFFFF
##2857B71.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1363BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2857b7;
/* rgb */ color: rgb(40, 87, 183);
/* oklch */ color: oklch(48.1% 0.161 262.4);
Tailwind
colors: {
  custom: {
    50: '#7885cd',
    500: '#2857b7',
    950: '#000000',
  },
}
SCSS
$custom: #2857b7;
$custom-light: #7885cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b7",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 183
  },
  "hsl": {
    "h": 220.28,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48114,
    "c": 0.16086,
    "h": 262.4
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#2857B7
secondary
#C9AC72
accent
#B041E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2857B7

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

Preview Lab → · Contrast checker → · Palette generator →

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