#2857A3#2857A3

#2857A3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.133 H 259.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2857A3
RGBrgb(40, 87, 163)
HSLhsl(217, 61%, 40%)
HSVhsv(217, 75%, 64%)
CMYKcmyk(75.5%, 46.6%, 0%, 36.1%)
CIE-LABlab(37.68, 11.47, -45.72)
CIE-LCHlch(37.68, 47.14, 284.09°)
OKLaboklab(46.64% -0.024 -0.1311)
OKLCHoklch(46.64% 0.133 259.6)
XYZxyz(10.8917, 9.9106, 35.9821)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A3 #A37428
analogous
#2895A3 #2857A3 #3628A3
triadic
#2857A3 #A32857 #57A328
tetradic
#2857A3 #A32895 #A37428 #28A336
square
#2857A3 #A32895 #A37428 #28A336
split-complementary
#2857A3 #A33628 #95A328
monochromatic
#102341 #1C3D72 #2857A3 #3A73CF #6B96DB

Accessibility & contrast

On white

7.04
#2857A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2857A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2857A3
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A3#FFFFFF#000000##FFFFFF
##2857A31.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA6
Deuteranopia (green-blind)
#1353A1
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2857a3;
/* rgb */ color: rgb(40, 87, 163);
/* oklch */ color: oklch(46.6% 0.133 259.6);
Tailwind
colors: {
  custom: {
    50: '#7385bf',
    500: '#2857a3',
    950: '#000000',
  },
}
SCSS
$custom: #2857a3;
$custom-light: #7385bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a3",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 163
  },
  "hsl": {
    "h": 217.073,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46635,
    "c": 0.13327,
    "h": 259.6
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#2857A3
secondary
#C19E66
accent
#A744E4
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2857A3

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

Preview Lab → · Contrast checker → · Palette generator →

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