#2854A2#2854A2

#2854A2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.9% C 0.136 H 260.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2854A2
RGBrgb(40, 84, 162)
HSLhsl(218, 60%, 40%)
HSVhsv(218, 75%, 64%)
CMYKcmyk(75.3%, 48.1%, 0%, 36.5%)
CIE-LABlab(36.74, 13.07, -46.63)
CIE-LCHlch(36.74, 48.43, 285.66°)
OKLaboklab(45.89% -0.0215 -0.1338)
OKLCHoklch(45.89% 0.136 260.9)
XYZxyz(10.5646, 9.3992, 35.4329)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2854A2 #A27628
analogous
#2891A2 #2854A2 #3928A2
triadic
#2854A2 #A22854 #54A228
tetradic
#2854A2 #A22891 #A27628 #28A239
square
#2854A2 #A22891 #A27628 #28A239
split-complementary
#2854A2 #A23928 #91A228
monochromatic
#102140 #1C3B71 #2854A2 #396FCE #6A93DA

Accessibility & contrast

On white

7.29
#2854A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2854A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2854A2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2854A2#FFFFFF#000000##FFFFFF
##2854A21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#0651A0
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2854a2;
/* rgb */ color: rgb(40, 84, 162);
/* oklch */ color: oklch(45.9% 0.136 260.9);
Tailwind
colors: {
  custom: {
    50: '#7383be',
    500: '#2854a2',
    950: '#000000',
  },
}
SCSS
$custom: #2854a2;
$custom-light: #7383be;
$custom-dark: #000000;
JSON
{
  "hex": "#2854a2",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 218.361,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.13556,
    "h": 260.9
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

primary
#2854A2
secondary
#C1A065
accent
#AA44E4
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2854A2

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

Preview Lab → · Contrast checker → · Palette generator →

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