#2857AE#2857AE

#2857AE is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.149 H 261.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2857AE
RGBrgb(40, 87, 174)
HSLhsl(219, 63%, 42%)
HSVhsv(219, 77%, 68%)
CMYKcmyk(77%, 50%, 0%, 31.8%)
CIE-LABlab(38.41, 15.73, -51.07)
CIE-LCHlch(38.41, 53.44, 287.12°)
OKLaboklab(47.43% -0.0223 -0.1468)
OKLCHoklch(47.43% 0.149 261.4)
XYZxyz(11.9205, 10.3221, 41.4003)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857AE #AE7F28
analogous
#289AAE #2857AE #3C28AE
triadic
#2857AE #AE2857 #57AE28
tetradic
#2857AE #AE289A #AE7F28 #28AE3C
square
#2857AE #AE289A #AE7F28 #28AE3C
split-complementary
#2857AE #AE3C28 #9AAE28
monochromatic
#11254A #1D3E7C #2857AE #4074D3 #7298DF

Accessibility & contrast

On white

6.85
#2857AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2857AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857AE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857AE#FFFFFF#000000##FFFFFF
##2857AE1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2361B1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2857ae;
/* rgb */ color: rgb(40, 87, 174);
/* oklch */ color: oklch(47.4% 0.149 261.4);
Tailwind
colors: {
  custom: {
    50: '#7685c7',
    500: '#2857ae',
    950: '#000000',
  },
}
SCSS
$custom: #2857ae;
$custom-light: #7685c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2857ae",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 174
  },
  "hsl": {
    "h": 218.955,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47433,
    "c": 0.14853,
    "h": 261.4
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#2857AE
secondary
#C6A66C
accent
#AC42E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857AE

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

Preview Lab → · Contrast checker → · Palette generator →

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