#2827A4#2827A4

#2827A4 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.192 H 272.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2827A4
RGBrgb(40, 39, 164)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 76%, 64%)
CMYKcmyk(75.6%, 76.2%, 0%, 35.7%)
CIE-LABlab(25.51, 42.91, -66.17)
CIE-LCHlch(25.51, 78.86, 302.96°)
OKLaboklab(37.62% 0.0088 -0.1915)
OKLCHoklch(37.62% 0.192 272.6)
XYZxyz(8.2992, 4.5816, 35.5617)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A4 #A3A427
analogous
#2765A4 #2827A4 #6727A4
triadic
#2827A4 #A42827 #27A428
tetradic
#2827A4 #A42765 #A3A427 #27A467
square
#2827A4 #A42765 #A3A427 #27A467
split-complementary
#2827A4 #A46727 #65A427
monochromatic
#100F41 #1C1B73 #2827A4 #3A38D0 #6B6ADC

Accessibility & contrast

On white

10.96
#2827A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2827A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2827A4#FFFFFF#000000##FFFFFF
##2827A41.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2827a4;
/* rgb */ color: rgb(40, 39, 164);
/* oklch */ color: oklch(37.6% 0.192 272.6);
Tailwind
colors: {
  custom: {
    50: '#7763c0',
    500: '#2827a4',
    950: '#000000',
  },
}
SCSS
$custom: #2827a4;
$custom-light: #7763c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a4",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 240.48,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37618,
    "c": 0.19169,
    "h": 272.6
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#2827A4
secondary
#C1C265
accent
#E543E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2827A4

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

Preview Lab → · Contrast checker → · Palette generator →

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