#2827C1#2827C1

#2827C1 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.226 H 270.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2827C1
RGBrgb(40, 39, 193)
HSLhsl(240, 66%, 45%)
HSVhsv(240, 80%, 76%)
CMYKcmyk(79.3%, 79.8%, 0%, 24.3%)
CIE-LABlab(28.78, 52.30, -78.08)
CIE-LCHlch(28.78, 93.98, 303.81°)
OKLaboklab(40.87% 0.0029 -0.2261)
OKLCHoklch(40.87% 0.226 270.7)
XYZxyz(11.2230, 5.7511, 50.9603)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827C1 #C0C127
analogous
#2773C1 #2827C1 #7527C1
triadic
#2827C1 #C12827 #27C128
tetradic
#2827C1 #C12773 #C0C127 #27C175
square
#2827C1 #C12773 #C0C127 #27C175
split-complementary
#2827C1 #C17527 #73C127
monochromatic
#13125B #1D1D8E #2827C1 #4C4BDB #7E7EE5

Accessibility & contrast

On white

9.77
#2827C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2827C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827C1
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827C1#FFFFFF#000000##FFFFFF
##2827C11.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC5
Deuteranopia (green-blind)
#003CBE
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2827c1;
/* rgb */ color: rgb(40, 39, 193);
/* oklch */ color: oklch(40.9% 0.226 270.7);
Tailwind
colors: {
  custom: {
    50: '#7e65d5',
    500: '#2827c1',
    950: '#000000',
  },
}
SCSS
$custom: #2827c1;
$custom-light: #7e65d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2827c1",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 193
  },
  "hsl": {
    "h": 240.39,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.22608,
    "h": 270.7
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#2827C1
secondary
#CDCD77
accent
#E93EE8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2827C1

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

Preview Lab → · Contrast checker → · Palette generator →

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