#2827A7#2827A7

#2827A7 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.195 H 272.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2827A7
RGBrgb(40, 39, 167)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 77%, 65%)
CMYKcmyk(76%, 76.6%, 0%, 34.5%)
CIE-LABlab(25.84, 43.91, -67.44)
CIE-LCHlch(25.84, 80.47, 303.07°)
OKLaboklab(37.95% 0.0082 -0.1952)
OKLCHoklch(37.95% 0.195 272.4)
XYZxyz(8.5733, 4.6913, 37.0054)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A7 #A6A727
analogous
#2766A7 #2827A7 #6827A7
triadic
#2827A7 #A72827 #27A728
tetradic
#2827A7 #A72766 #A6A727 #27A768
square
#2827A7 #A72766 #A6A727 #27A768
split-complementary
#2827A7 #A76827 #66A727
monochromatic
#101044 #1C1B75 #2827A7 #3B3AD1 #6D6CDD

Accessibility & contrast

On white

10.83
#2827A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2827A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2827A7#FFFFFF#000000##FFFFFF
##2827A71.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2827a7;
/* rgb */ color: rgb(40, 39, 167);
/* oklch */ color: oklch(37.9% 0.195 272.4);
Tailwind
colors: {
  custom: {
    50: '#7863c2',
    500: '#2827a7',
    950: '#000000',
  },
}
SCSS
$custom: #2827a7;
$custom-light: #7863c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a7",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 240.469,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37947,
    "c": 0.19536,
    "h": 272.4
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#2827A7
secondary
#C2C367
accent
#E543E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2827A7

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

Preview Lab → · Contrast checker → · Palette generator →

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