#2827BC#2827BC

#2827BC is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.3% C 0.220 H 271.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2827BC
RGBrgb(40, 39, 188)
HSLhsl(240, 66%, 45%)
HSVhsv(240, 79%, 74%)
CMYKcmyk(78.7%, 79.3%, 0%, 26.3%)
CIE-LABlab(28.20, 50.72, -76.09)
CIE-LCHlch(28.20, 91.44, 303.69°)
OKLaboklab(40.3% 0.004 -0.2203)
OKLCHoklch(40.3% 0.22 271)
XYZxyz(10.6746, 5.5318, 48.0724)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827BC #BBBC27
analogous
#2770BC #2827BC #7327BC
triadic
#2827BC #BC2827 #27BC28
tetradic
#2827BC #BC2770 #BBBC27 #27BC73
square
#2827BC #BC2770 #BBBC27 #27BC73
split-complementary
#2827BC #BC7327 #70BC27
monochromatic
#121257 #1D1C89 #2827BC #4847D9 #7B7AE3

Accessibility & contrast

On white

9.97
#2827BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2827BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827BC
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827BC#FFFFFF#000000##FFFFFF
##2827BC1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC0
Deuteranopia (green-blind)
#003BB9
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2827bc;
/* rgb */ color: rgb(40, 39, 188);
/* oklch */ color: oklch(40.3% 0.220 271.0);
Tailwind
colors: {
  custom: {
    50: '#7d64d2',
    500: '#2827bc',
    950: '#000000',
  },
}
SCSS
$custom: #2827bc;
$custom-light: #7d64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2827bc",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 240.403,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.22032,
    "h": 271
  },
  "luminance": 0.05533
}

Semantic roles & 50–950 ramp

primary
#2827BC
secondary
#CBCB73
accent
#E93FE7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2827BC

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

Preview Lab → · Contrast checker → · Palette generator →

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