#2857AF#2857AF

#2857AF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.150 H 261.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2857AF
RGBrgb(40, 87, 175)
HSLhsl(219, 63%, 42%)
HSVhsv(219, 77%, 69%)
CMYKcmyk(77.1%, 50.3%, 0%, 31.4%)
CIE-LABlab(38.48, 16.12, -51.55)
CIE-LCHlch(38.48, 54.02, 287.36°)
OKLaboklab(47.51% -0.0221 -0.1483)
OKLCHoklch(47.51% 0.15 261.5)
XYZxyz(12.0183, 10.3613, 41.9156)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857AF #AF8028
analogous
#289BAF #2857AF #3C28AF
triadic
#2857AF #AF2857 #57AF28
tetradic
#2857AF #AF289B #AF8028 #28AF3C
square
#2857AF #AF289B #AF8028 #28AF3C
split-complementary
#2857AF #AF3C28 #9BAF28
monochromatic
#11254B #1D3E7D #2857AF #4174D4 #7398DF

Accessibility & contrast

On white

6.83
#2857AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2857AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2857AF#FFFFFF#000000##FFFFFF
##2857AF1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2261B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2857af;
/* rgb */ color: rgb(40, 87, 175);
/* oklch */ color: oklch(47.5% 0.150 261.5);
Tailwind
colors: {
  custom: {
    50: '#7685c7',
    500: '#2857af',
    950: '#000000',
  },
}
SCSS
$custom: #2857af;
$custom-light: #7685c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2857af",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 219.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47507,
    "c": 0.1499,
    "h": 261.5
  },
  "luminance": 0.10363
}

Semantic roles & 50–950 ramp

primary
#2857AF
secondary
#C6A76D
accent
#AD42E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857AF

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

Preview Lab → · Contrast checker → · Palette generator →

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