#2857A4#2857A4

#2857A4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.135 H 259.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2857A4
RGBrgb(40, 87, 164)
HSLhsl(217, 61%, 40%)
HSVhsv(217, 76%, 64%)
CMYKcmyk(75.6%, 47%, 0%, 35.7%)
CIE-LABlab(37.75, 11.86, -46.21)
CIE-LCHlch(37.75, 47.71, 284.40°)
OKLaboklab(46.71% -0.0238 -0.1325)
OKLCHoklch(46.71% 0.135 259.8)
XYZxyz(10.9817, 9.9466, 36.4559)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A4 #A47528
analogous
#2895A4 #2857A4 #3728A4
triadic
#2857A4 #A42857 #57A428
tetradic
#2857A4 #A42895 #A47528 #28A437
square
#2857A4 #A42895 #A47528 #28A437
split-complementary
#2857A4 #A43728 #95A428
monochromatic
#102342 #1C3D73 #2857A4 #3A73CF #6B96DB

Accessibility & contrast

On white

7.02
#2857A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2857A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2857A4
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A4#FFFFFF#000000##FFFFFF
##2857A41.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5FA7
Deuteranopia (green-blind)
#1054A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2857a4;
/* rgb */ color: rgb(40, 87, 164);
/* oklch */ color: oklch(46.7% 0.135 259.8);
Tailwind
colors: {
  custom: {
    50: '#7485bf',
    500: '#2857a4',
    950: '#000000',
  },
}
SCSS
$custom: #2857a4;
$custom-light: #7485bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a4",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 217.258,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.46706,
    "c": 0.13466,
    "h": 259.8
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#2857A4
secondary
#C19F66
accent
#A744E4
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2857A4

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

Preview Lab → · Contrast checker → · Palette generator →

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