#2827C4#2827C4

#2827C4 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.2% C 0.230 H 270.6°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2827C4
RGBrgb(40, 39, 196)
HSLhsl(240, 67%, 46%)
HSVhsv(240, 80%, 77%)
CMYKcmyk(79.6%, 80.1%, 0%, 23.1%)
CIE-LABlab(29.12, 53.24, -79.27)
CIE-LCHlch(29.12, 95.49, 303.88°)
OKLaboklab(41.21% 0.0023 -0.2295)
OKLCHoklch(41.21% 0.23 270.6)
XYZxyz(11.5610, 5.8864, 52.7407)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827C4 #C3C427
analogous
#2774C4 #2827C4 #7627C4
triadic
#2827C4 #C42827 #27C428
tetradic
#2827C4 #C42774 #C3C427 #27C476
square
#2827C4 #C42774 #C3C427 #27C476
split-complementary
#2827C4 #C47627 #74C427
monochromatic
#13135E #1E1D91 #2827C4 #4E4DDC #8080E6

Accessibility & contrast

On white

9.64
#2827C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2827C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827C4
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827C4#FFFFFF#000000##FFFFFF
##2827C41.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC8
Deuteranopia (green-blind)
#003CC1
Tritanopia (blue-blind)
#005876
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2827c4;
/* rgb */ color: rgb(40, 39, 196);
/* oklch */ color: oklch(41.2% 0.230 270.6);
Tailwind
colors: {
  custom: {
    50: '#7f65d7',
    500: '#2827c4',
    950: '#000000',
  },
}
SCSS
$custom: #2827c4;
$custom-light: #7f65d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2827c4",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 196
  },
  "hsl": {
    "h": 240.382,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.22951,
    "h": 270.6
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#2827C4
secondary
#CECE79
accent
#EA3EE9
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2827C4

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

Preview Lab → · Contrast checker → · Palette generator →

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