#2854AB#2854AB

#2854AB is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.148 H 262.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2854AB
RGBrgb(40, 84, 171)
HSLhsl(220, 62%, 41%)
HSVhsv(220, 77%, 67%)
CMYKcmyk(76.6%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.35, 16.55, -51.01)
CIE-LCHlch(37.35, 53.63, 287.98°)
OKLaboklab(46.56% -0.0202 -0.1467)
OKLCHoklch(46.56% 0.148 262.1)
XYZxyz(11.3934, 9.7308, 39.7979)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2854AB #AB7F28
analogous
#2896AB #2854AB #3E28AB
triadic
#2854AB #AB2854 #54AB28
tetradic
#2854AB #AB2896 #AB7F28 #28AB3E
square
#2854AB #AB2896 #AB7F28 #28AB3E
split-complementary
#2854AB #AB3E28 #96AB28
monochromatic
#112348 #1C3C79 #2854AB #3E70D2 #7095DE

Accessibility & contrast

On white

7.13
#2854AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2854AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2854AB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2854AB#FFFFFF#000000##FFFFFF
##2854AB1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAE
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2854ab;
/* rgb */ color: rgb(40, 84, 171);
/* oklch */ color: oklch(46.6% 0.148 262.1);
Tailwind
colors: {
  custom: {
    50: '#7583c5',
    500: '#2854ab',
    950: '#000000',
  },
}
SCSS
$custom: #2854ab;
$custom-light: #7583c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2854ab",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 219.847,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46557,
    "c": 0.1481,
    "h": 262.1
  },
  "luminance": 0.09732
}

Semantic roles & 50–950 ramp

primary
#2854AB
secondary
#C4A66A
accent
#AF43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2854AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2854AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva