#2728BA#2728BA

#2728BA is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.217 H 270.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2728BA
RGBrgb(39, 40, 186)
HSLhsl(240, 65%, 44%)
HSVhsv(240, 79%, 73%)
CMYKcmyk(79%, 78.5%, 0%, 27.1%)
CIE-LABlab(28.10, 49.51, -75.07)
CIE-LCHlch(28.10, 89.93, 303.40°)
OKLaboklab(40.14% 0.003 -0.2174)
OKLCHoklch(40.14% 0.217 270.8)
XYZxyz(10.4554, 5.4929, 46.9541)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728BA #BAB927
analogous
#2772BA #2728BA #7027BA
triadic
#2728BA #BA2728 #28BA27
tetradic
#2728BA #BA2772 #BAB927 #27BA70
square
#2728BA #BA2772 #BAB927 #27BA70
split-complementary
#2728BA #BA7027 #72BA27
monochromatic
#121255 #1C1D87 #2728BA #4647D8 #7979E3

Accessibility & contrast

On white

10.01
#2728BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2728BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728BA
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728BA#FFFFFF#000000##FFFFFF
##2728BA1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABE
Deuteranopia (green-blind)
#003BB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2728ba;
/* rgb */ color: rgb(39, 40, 186);
/* oklch */ color: oklch(40.1% 0.217 270.8);
Tailwind
colors: {
  custom: {
    50: '#7c65d0',
    500: '#2728ba',
    950: '#000000',
  },
}
SCSS
$custom: #2728ba;
$custom-light: #7c65d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2728ba",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 239.592,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40144,
    "c": 0.2174,
    "h": 270.8
  },
  "luminance": 0.05494
}

Semantic roles & 50–950 ramp

primary
#2728BA
secondary
#CBCA72
accent
#E740E8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2728BA

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

Preview Lab → · Contrast checker → · Palette generator →

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