#2857A8#2857A8

#2857A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.140 H 260.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2857A8
RGBrgb(40, 87, 168)
HSLhsl(218, 62%, 41%)
HSVhsv(218, 76%, 66%)
CMYKcmyk(76.2%, 48.2%, 0%, 34.1%)
CIE-LABlab(38.01, 13.41, -48.17)
CIE-LCHlch(38.01, 50.00, 285.56°)
OKLaboklab(46.99% -0.0232 -0.1383)
OKLCHoklch(46.99% 0.14 260.5)
XYZxyz(11.3486, 10.0934, 38.3883)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A8 #A87928
analogous
#2897A8 #2857A8 #3928A8
triadic
#2857A8 #A82857 #57A828
tetradic
#2857A8 #A82897 #A87928 #28A839
square
#2857A8 #A82897 #A87928 #28A839
split-complementary
#2857A8 #A83928 #97A828
monochromatic
#102445 #1C3D77 #2857A8 #3D73D1 #6E97DC

Accessibility & contrast

On white

6.96
#2857A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2857A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857A8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A8#FFFFFF#000000##FFFFFF
##2857A81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AB
Deuteranopia (green-blind)
#0254A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2857a8;
/* rgb */ color: rgb(40, 87, 168);
/* oklch */ color: oklch(47.0% 0.140 260.5);
Tailwind
colors: {
  custom: {
    50: '#7485c2',
    500: '#2857a8',
    950: '#000000',
  },
}
SCSS
$custom: #2857a8;
$custom-light: #7485c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a8",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 168
  },
  "hsl": {
    "h": 217.969,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46993,
    "c": 0.14023,
    "h": 260.5
  },
  "luminance": 0.10095
}

Semantic roles & 50–950 ramp

primary
#2857A8
secondary
#C3A269
accent
#A943E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2857A8

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

Preview Lab → · Contrast checker → · Palette generator →

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