#2827BD#2827BD

#2827BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.221 H 271.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2827BD
RGBrgb(40, 39, 189)
HSLhsl(240, 66%, 45%)
HSVhsv(240, 79%, 74%)
CMYKcmyk(78.8%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.31, 51.04, -76.49)
CIE-LCHlch(28.31, 91.95, 303.71°)
OKLaboklab(40.41% 0.0037 -0.2214)
OKLCHoklch(40.41% 0.221 271)
XYZxyz(10.7828, 5.5751, 48.6420)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827BD #BCBD27
analogous
#2771BD #2827BD #7327BD
triadic
#2827BD #BD2827 #27BD28
tetradic
#2827BD #BD2771 #BCBD27 #27BD73
square
#2827BD #BD2771 #BCBD27 #27BD73
split-complementary
#2827BD #BD7327 #71BD27
monochromatic
#131258 #1D1D8A #2827BD #4948D9 #7B7BE4

Accessibility & contrast

On white

9.93
#2827BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2827BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827BD
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827BD#FFFFFF#000000##FFFFFF
##2827BD1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003BBA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2827bd;
/* rgb */ color: rgb(40, 39, 189);
/* oklch */ color: oklch(40.4% 0.221 271.0);
Tailwind
colors: {
  custom: {
    50: '#7d65d2',
    500: '#2827bd',
    950: '#000000',
  },
}
SCSS
$custom: #2827bd;
$custom-light: #7d65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2827bd",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 240.4,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40411,
    "c": 0.22147,
    "h": 271
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#2827BD
secondary
#CBCC74
accent
#E93FE8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2827BD

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

Preview Lab → · Contrast checker → · Palette generator →

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