#2827AE#2827AE

#2827AE is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.7% C 0.204 H 271.9°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2827AE
RGBrgb(40, 39, 174)
HSLhsl(240, 63%, 42%)
HSVhsv(240, 78%, 68%)
CMYKcmyk(77%, 77.6%, 0%, 31.8%)
CIE-LABlab(26.61, 46.21, -70.37)
CIE-LCHlch(26.61, 84.19, 303.29°)
OKLaboklab(38.72% 0.0068 -0.2037)
OKLCHoklch(38.72% 0.204 271.9)
XYZxyz(9.2380, 4.9571, 40.5061)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827AE #ADAE27
analogous
#276AAE #2827AE #6B27AE
triadic
#2827AE #AE2827 #27AE28
tetradic
#2827AE #AE276A #ADAE27 #27AE6B
square
#2827AE #AE276A #ADAE27 #27AE6B
split-complementary
#2827AE #AE6B27 #6AAE27
monochromatic
#11114A #1D1C7C #2827AE #3F3ED4 #7170DF

Accessibility & contrast

On white

10.54
#2827AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2827AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827AE
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827AE#FFFFFF#000000##FFFFFF
##2827AE1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2827ae;
/* rgb */ color: rgb(40, 39, 174);
/* oklch */ color: oklch(38.7% 0.204 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2827ae',
    950: '#000000',
  },
}
SCSS
$custom: #2827ae;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2827ae",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 240.444,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.20382,
    "h": 271.9
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#2827AE
secondary
#C5C66B
accent
#E641E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2827AE

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

Preview Lab → · Contrast checker → · Palette generator →

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