#2854B1#2854B1

#2854B1 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.0% C 0.156 H 262.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2854B1
RGBrgb(40, 84, 177)
HSLhsl(221, 63%, 43%)
HSVhsv(221, 77%, 69%)
CMYKcmyk(77.4%, 52.5%, 0%, 30.6%)
CIE-LABlab(37.78, 18.88, -53.87)
CIE-LCHlch(37.78, 57.09, 289.31°)
OKLaboklab(47.02% -0.0195 -0.1551)
OKLCHoklch(47.02% 0.156 262.8)
XYZxyz(11.9784, 9.9647, 42.8785)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2854B1 #B18528
analogous
#2899B1 #2854B1 #4028B1
triadic
#2854B1 #B12854 #54B128
tetradic
#2854B1 #B12899 #B18528 #28B140
square
#2854B1 #B12899 #B18528 #28B140
split-complementary
#2854B1 #B14028 #99B128
monochromatic
#11254D #1D3C7F #2854B1 #4271D4 #7496E0

Accessibility & contrast

On white

7.02
#2854B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2854B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2854B1
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2854B1#FFFFFF#000000##FFFFFF
##2854B11.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B4
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2854b1;
/* rgb */ color: rgb(40, 84, 177);
/* oklch */ color: oklch(47.0% 0.156 262.8);
Tailwind
colors: {
  custom: {
    50: '#7783c9',
    500: '#2854b1',
    950: '#000000',
  },
}
SCSS
$custom: #2854b1;
$custom-light: #7783c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2854b1",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 177
  },
  "hsl": {
    "h": 220.73,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47015,
    "c": 0.15637,
    "h": 262.8
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#2854B1
secondary
#C7AA6E
accent
#B142E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2854B1

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

Preview Lab → · Contrast checker → · Palette generator →

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