#2827A3#2827A3

#2827A3 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.190 H 272.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2827A3
RGBrgb(40, 39, 163)
HSLhsl(240, 61%, 40%)
HSVhsv(240, 76%, 64%)
CMYKcmyk(75.5%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.40, 42.57, -65.74)
CIE-LCHlch(25.40, 78.32, 302.93°)
OKLaboklab(37.51% 0.009 -0.1902)
OKLCHoklch(37.51% 0.19 272.7)
XYZxyz(8.2092, 4.5456, 35.0880)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A3 #A2A327
analogous
#2764A3 #2827A3 #6627A3
triadic
#2827A3 #A32827 #27A328
tetradic
#2827A3 #A32764 #A2A327 #27A366
square
#2827A3 #A32764 #A2A327 #27A366
split-complementary
#2827A3 #A36627 #64A327
monochromatic
#100F40 #1C1B72 #2827A3 #3938CF #6A69DB

Accessibility & contrast

On white

11.00
#2827A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2827A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2827A3#FFFFFF#000000##FFFFFF
##2827A31.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2827a3;
/* rgb */ color: rgb(40, 39, 163);
/* oklch */ color: oklch(37.5% 0.190 272.7);
Tailwind
colors: {
  custom: {
    50: '#7763c0',
    500: '#2827a3',
    950: '#000000',
  },
}
SCSS
$custom: #2827a3;
$custom-light: #7763c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a3",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 240.484,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37509,
    "c": 0.19046,
    "h": 272.7
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#2827A3
secondary
#C1C164
accent
#E443E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2827A3

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

Preview Lab → · Contrast checker → · Palette generator →

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