#2857A6#2857A6

#2857A6 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.137 H 260.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2857A6
RGBrgb(40, 87, 166)
HSLhsl(218, 61%, 40%)
HSVhsv(218, 76%, 65%)
CMYKcmyk(75.9%, 47.6%, 0%, 34.9%)
CIE-LABlab(37.88, 12.64, -47.19)
CIE-LCHlch(37.88, 48.86, 284.99°)
OKLaboklab(46.85% -0.0235 -0.1354)
OKLCHoklch(46.85% 0.137 260.2)
XYZxyz(11.1637, 10.0194, 37.4146)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A6 #A67728
analogous
#2896A6 #2857A6 #3828A6
triadic
#2857A6 #A62857 #57A628
tetradic
#2857A6 #A62896 #A67728 #28A638
square
#2857A6 #A62896 #A67728 #28A638
split-complementary
#2857A6 #A63828 #96A628
monochromatic
#102343 #1C3D75 #2857A6 #3B73D0 #6D96DC

Accessibility & contrast

On white

6.99
#2857A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2857A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857A6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A6#FFFFFF#000000##FFFFFF
##2857A61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA9
Deuteranopia (green-blind)
#0A54A4
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2857a6;
/* rgb */ color: rgb(40, 87, 166);
/* oklch */ color: oklch(46.8% 0.137 260.2);
Tailwind
colors: {
  custom: {
    50: '#7485c1',
    500: '#2857a6',
    950: '#000000',
  },
}
SCSS
$custom: #2857a6;
$custom-light: #7485c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a6",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 166
  },
  "hsl": {
    "h": 217.619,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.13745,
    "h": 260.2
  },
  "luminance": 0.10021
}

Semantic roles & 50–950 ramp

primary
#2857A6
secondary
#C2A067
accent
#A844E4
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2857A6

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

Preview Lab → · Contrast checker → · Palette generator →

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