#2728A2#2728A2

#2728A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.189 H 272.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2728A2
RGBrgb(39, 40, 162)
HSLhsl(240, 61%, 39%)
HSVhsv(240, 76%, 64%)
CMYKcmyk(75.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.43, 41.58, -65.08)
CIE-LCHlch(25.43, 77.23, 302.57°)
OKLaboklab(37.48% 0.0075 -0.1884)
OKLCHoklch(37.48% 0.189 272.3)
XYZxyz(8.1149, 4.5567, 34.6273)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728A2 #A2A127
analogous
#2766A2 #2728A2 #6427A2
triadic
#2728A2 #A22728 #28A227
tetradic
#2728A2 #A22766 #A2A127 #27A264
square
#2728A2 #A22766 #A2A127 #27A264
split-complementary
#2728A2 #A26427 #66A227
monochromatic
#0F103F #1B1C71 #2728A2 #3739CF #696ADB

Accessibility & contrast

On white

10.99
#2728A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2728A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728A2
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728A2#FFFFFF#000000##FFFFFF
##2728A21.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2728a2;
/* rgb */ color: rgb(39, 40, 162);
/* oklch */ color: oklch(37.5% 0.189 272.3);
Tailwind
colors: {
  custom: {
    50: '#7664bf',
    500: '#2728a2',
    950: '#000000',
  },
}
SCSS
$custom: #2728a2;
$custom-light: #7664bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2728a2",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 239.512,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.18851,
    "h": 272.3
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#2728A2
secondary
#C1C064
accent
#E343E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2728A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2728A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva