#2827A1#2827A1

#2827A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.188 H 272.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2827A1
RGBrgb(40, 39, 161)
HSLhsl(240, 61%, 39%)
HSVhsv(240, 76%, 63%)
CMYKcmyk(75.2%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.18, 41.90, -64.88)
CIE-LCHlch(25.18, 77.24, 302.85°)
OKLaboklab(37.29% 0.0094 -0.1878)
OKLCHoklch(37.29% 0.188 272.9)
XYZxyz(8.0315, 4.4745, 34.1517)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A1 #A0A127
analogous
#2763A1 #2827A1 #6527A1
triadic
#2827A1 #A12827 #27A128
tetradic
#2827A1 #A12763 #A0A127 #27A165
square
#2827A1 #A12763 #A0A127 #27A165
split-complementary
#2827A1 #A16527 #63A127
monochromatic
#100F3E #1C1B70 #2827A1 #3837CE #6968DA

Accessibility & contrast

On white

11.08
#2827A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2827A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827A1
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827A1#FFFFFF#000000##FFFFFF
##2827A11.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2827a1;
/* rgb */ color: rgb(40, 39, 161);
/* oklch */ color: oklch(37.3% 0.188 272.9);
Tailwind
colors: {
  custom: {
    50: '#7663be',
    500: '#2827a1',
    950: '#000000',
  },
}
SCSS
$custom: #2827a1;
$custom-light: #7663be;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a1",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 240.492,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.18799,
    "h": 272.9
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#2827A1
secondary
#C0C063
accent
#E444E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2827A1

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

Preview Lab → · Contrast checker → · Palette generator →

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