#2827AA#2827AA

#2827AA is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.199 H 272.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2827AA
RGBrgb(40, 39, 170)
HSLhsl(240, 63%, 41%)
HSVhsv(240, 77%, 67%)
CMYKcmyk(76.5%, 77.1%, 0%, 33.3%)
CIE-LABlab(26.17, 44.90, -68.70)
CIE-LCHlch(26.17, 82.07, 303.17°)
OKLaboklab(38.28% 0.0076 -0.1989)
OKLCHoklch(38.28% 0.199 272.2)
XYZxyz(8.8538, 4.8035, 38.4830)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827AA #A9AA27
analogous
#2767AA #2827AA #6927AA
triadic
#2827AA #AA2827 #27AA28
tetradic
#2827AA #AA2767 #A9AA27 #27AA69
square
#2827AA #AA2767 #A9AA27 #27AA69
split-complementary
#2827AA #AA6927 #67AA27
monochromatic
#111046 #1C1C78 #2827AA #3D3CD2 #6F6EDE

Accessibility & contrast

On white

10.71
#2827AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2827AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2827AA#FFFFFF#000000##FFFFFF
##2827AA1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#0037A8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2827aa;
/* rgb */ color: rgb(40, 39, 170);
/* oklch */ color: oklch(38.3% 0.199 272.2);
Tailwind
colors: {
  custom: {
    50: '#7963c5',
    500: '#2827aa',
    950: '#000000',
  },
}
SCSS
$custom: #2827aa;
$custom-light: #7963c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2827aa",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 240.458,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38278,
    "c": 0.199,
    "h": 272.2
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#2827AA
secondary
#C4C469
accent
#E642E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2827AA

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

Preview Lab → · Contrast checker → · Palette generator →

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