#2855A2#2855A2

#2855A2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.134 H 260.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2855A2
RGBrgb(40, 85, 162)
HSLhsl(218, 60%, 40%)
HSVhsv(218, 75%, 64%)
CMYKcmyk(75.3%, 47.5%, 0%, 36.5%)
CIE-LABlab(37.03, 12.41, -46.16)
CIE-LCHlch(37.03, 47.80, 285.04°)
OKLaboklab(46.12% -0.0224 -0.1324)
OKLCHoklch(46.12% 0.134 260.4)
XYZxyz(10.6428, 9.5556, 35.4589)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2855A2 #A27528
analogous
#2892A2 #2855A2 #3828A2
triadic
#2855A2 #A22855 #55A228
tetradic
#2855A2 #A22892 #A27528 #28A238
square
#2855A2 #A22892 #A27528 #28A238
split-complementary
#2855A2 #A23828 #92A228
monochromatic
#102140 #1C3B71 #2855A2 #3970CE #6A93DA

Accessibility & contrast

On white

7.21
#2855A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2855A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2855A2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2855A2#FFFFFF#000000##FFFFFF
##2855A21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#0C52A0
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2855a2;
/* rgb */ color: rgb(40, 85, 162);
/* oklch */ color: oklch(46.1% 0.134 260.4);
Tailwind
colors: {
  custom: {
    50: '#7384be',
    500: '#2855a2',
    950: '#000000',
  },
}
SCSS
$custom: #2855a2;
$custom-light: #7384be;
$custom-dark: #000000;
JSON
{
  "hex": "#2855a2",
  "rgb": {
    "r": 40,
    "g": 85,
    "b": 162
  },
  "hsl": {
    "h": 217.869,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46115,
    "c": 0.13432,
    "h": 260.4
  },
  "luminance": 0.09557
}

Semantic roles & 50–950 ramp

primary
#2855A2
secondary
#C19F65
accent
#A944E4
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2855A2

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

Preview Lab → · Contrast checker → · Palette generator →

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