#2827BA#2827BA

#2827BA is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.1% C 0.218 H 271.1°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2827BA
RGBrgb(40, 39, 186)
HSLhsl(240, 65%, 44%)
HSVhsv(240, 79%, 73%)
CMYKcmyk(78.5%, 79%, 0%, 27.1%)
CIE-LABlab(27.97, 50.09, -75.28)
CIE-LCHlch(27.97, 90.42, 303.64°)
OKLaboklab(40.07% 0.0044 -0.2179)
OKLCHoklch(40.07% 0.218 271.1)
XYZxyz(10.4605, 5.4462, 46.9448)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827BA #B9BA27
analogous
#2770BA #2827BA #7227BA
triadic
#2827BA #BA2827 #27BA28
tetradic
#2827BA #BA2770 #B9BA27 #27BA72
square
#2827BA #BA2770 #B9BA27 #27BA72
split-complementary
#2827BA #BA7227 #70BA27
monochromatic
#121255 #1D1C87 #2827BA #4746D8 #7979E3

Accessibility & contrast

On white

10.05
#2827BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2827BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827BA
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827BA#FFFFFF#000000##FFFFFF
##2827BA1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#003AB7
Tritanopia (blue-blind)
#005470
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2827ba;
/* rgb */ color: rgb(40, 39, 186);
/* oklch */ color: oklch(40.1% 0.218 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d64d0',
    500: '#2827ba',
    950: '#000000',
  },
}
SCSS
$custom: #2827ba;
$custom-light: #7d64d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2827ba",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 240.408,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.21799,
    "h": 271.1
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#2827BA
secondary
#CACB72
accent
#E840E7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2827BA

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

Preview Lab → · Contrast checker → · Palette generator →

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