#2827AD#2827AD

#2827AD is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.6% C 0.203 H 272.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2827AD
RGBrgb(40, 39, 173)
HSLhsl(240, 63%, 42%)
HSVhsv(240, 77%, 68%)
CMYKcmyk(76.9%, 77.5%, 0%, 32.2%)
CIE-LABlab(26.50, 45.89, -69.96)
CIE-LCHlch(26.50, 83.66, 303.26°)
OKLaboklab(38.61% 0.007 -0.2025)
OKLCHoklch(38.61% 0.203 272)
XYZxyz(9.1409, 4.9183, 39.9946)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827AD #ACAD27
analogous
#2769AD #2827AD #6B27AD
triadic
#2827AD #AD2827 #27AD28
tetradic
#2827AD #AD2769 #ACAD27 #27AD6B
square
#2827AD #AD2769 #ACAD27 #27AD6B
split-complementary
#2827AD #AD6B27 #69AD27
monochromatic
#111049 #1C1C7B #2827AD #3F3ED3 #7170DF

Accessibility & contrast

On white

10.59
#2827AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2827AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2827AD#FFFFFF#000000##FFFFFF
##2827AD1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B1
Deuteranopia (green-blind)
#0038AB
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2827ad;
/* rgb */ color: rgb(40, 39, 173);
/* oklch */ color: oklch(38.6% 0.203 272.0);
Tailwind
colors: {
  custom: {
    50: '#7964c7',
    500: '#2827ad',
    950: '#000000',
  },
}
SCSS
$custom: #2827ad;
$custom-light: #7964c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2827ad",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 240.448,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38611,
    "c": 0.20262,
    "h": 272
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#2827AD
secondary
#C5C66A
accent
#E642E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2827AD

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

Preview Lab → · Contrast checker → · Palette generator →

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