#2827BB#2827BB

#2827BB is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.219 H 271.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2827BB
RGBrgb(40, 39, 187)
HSLhsl(240, 65%, 44%)
HSVhsv(240, 79%, 73%)
CMYKcmyk(78.6%, 79.1%, 0%, 26.7%)
CIE-LABlab(28.08, 50.41, -75.68)
CIE-LCHlch(28.08, 90.93, 303.66°)
OKLaboklab(40.18% 0.0042 -0.2191)
OKLCHoklch(40.18% 0.219 271.1)
XYZxyz(10.5672, 5.4888, 47.5066)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827BB #BABB27
analogous
#2770BB #2827BB #7227BB
triadic
#2827BB #BB2827 #27BB28
tetradic
#2827BB #BB2770 #BABB27 #27BB72
square
#2827BB #BB2770 #BABB27 #27BB72
split-complementary
#2827BB #BB7227 #70BB27
monochromatic
#121256 #1D1C88 #2827BB #4847D9 #7A79E3

Accessibility & contrast

On white

10.01
#2827BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2827BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827BB
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827BB#FFFFFF#000000##FFFFFF
##2827BB1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#003BB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2827bb;
/* rgb */ color: rgb(40, 39, 187);
/* oklch */ color: oklch(40.2% 0.219 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d64d1',
    500: '#2827bb',
    950: '#000000',
  },
}
SCSS
$custom: #2827bb;
$custom-light: #7d64d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2827bb",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 240.405,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.21915,
    "h": 271.1
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#2827BB
secondary
#CACB73
accent
#E83FE7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2827BB

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

Preview Lab → · Contrast checker → · Palette generator →

#2827BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva