#2857AA#2857AA

#2857AA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.1% C 0.143 H 260.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2857AA
RGBrgb(40, 87, 170)
HSLhsl(218, 62%, 41%)
HSVhsv(218, 76%, 67%)
CMYKcmyk(76.5%, 48.8%, 0%, 33.3%)
CIE-LABlab(38.14, 14.18, -49.14)
CIE-LCHlch(38.14, 51.15, 286.10°)
OKLaboklab(47.14% -0.0228 -0.1412)
OKLCHoklch(47.14% 0.143 260.8)
XYZxyz(11.5363, 10.1685, 39.3771)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857AA #AA7B28
analogous
#2898AA #2857AA #3A28AA
triadic
#2857AA #AA2857 #57AA28
tetradic
#2857AA #AA2898 #AA7B28 #28AA3A
square
#2857AA #AA2898 #AA7B28 #28AA3A
split-complementary
#2857AA #AA3A28 #98AA28
monochromatic
#112447 #1C3E78 #2857AA #3E73D2 #6F97DD

Accessibility & contrast

On white

6.92
#2857AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2857AA#FFFFFF#000000##FFFFFF
##2857AA1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2857aa;
/* rgb */ color: rgb(40, 87, 170);
/* oklch */ color: oklch(47.1% 0.143 260.8);
Tailwind
colors: {
  custom: {
    50: '#7585c4',
    500: '#2857aa',
    950: '#000000',
  },
}
SCSS
$custom: #2857aa;
$custom-light: #7585c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2857aa",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 170
  },
  "hsl": {
    "h": 218.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47138,
    "c": 0.143,
    "h": 260.8
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#2857AA
secondary
#C4A36A
accent
#AA43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857AA

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

Preview Lab → · Contrast checker → · Palette generator →

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