#2857A9#2857A9

#2857A9 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.142 H 260.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2857A9
RGBrgb(40, 87, 169)
HSLhsl(218, 62%, 41%)
HSVhsv(218, 76%, 66%)
CMYKcmyk(76.3%, 48.5%, 0%, 33.7%)
CIE-LABlab(38.08, 13.80, -48.66)
CIE-LCHlch(38.08, 50.57, 285.83°)
OKLaboklab(47.07% -0.023 -0.1397)
OKLCHoklch(47.07% 0.142 260.7)
XYZxyz(11.4421, 10.1308, 38.8808)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A9 #A97A28
analogous
#2897A9 #2857A9 #3A28A9
triadic
#2857A9 #A92857 #57A928
tetradic
#2857A9 #A92897 #A97A28 #28A93A
square
#2857A9 #A92897 #A97A28 #28A93A
split-complementary
#2857A9 #A93A28 #97A928
monochromatic
#112446 #1C3E78 #2857A9 #3D73D1 #6F97DD

Accessibility & contrast

On white

6.94
#2857A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2857A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857A9
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A9#FFFFFF#000000##FFFFFF
##2857A91.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2960AC
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2857a9;
/* rgb */ color: rgb(40, 87, 169);
/* oklch */ color: oklch(47.1% 0.142 260.7);
Tailwind
colors: {
  custom: {
    50: '#7585c3',
    500: '#2857a9',
    950: '#000000',
  },
}
SCSS
$custom: #2857a9;
$custom-light: #7585c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a9",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 169
  },
  "hsl": {
    "h": 218.14,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47065,
    "c": 0.14162,
    "h": 260.7
  },
  "luminance": 0.10132
}

Semantic roles & 50–950 ramp

primary
#2857A9
secondary
#C4A369
accent
#AA43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2857A9

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

Preview Lab → · Contrast checker → · Palette generator →

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