#2728B1#2728B1

#2728B1 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.207 H 271.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2728B1
RGBrgb(39, 40, 177)
HSLhsl(240, 64%, 42%)
HSVhsv(240, 78%, 69%)
CMYKcmyk(78%, 77.4%, 0%, 30.6%)
CIE-LABlab(27.08, 46.58, -71.40)
CIE-LCHlch(27.08, 85.25, 303.12°)
OKLaboklab(39.13% 0.0047 -0.2067)
OKLCHoklch(39.13% 0.207 271.3)
XYZxyz(9.5286, 5.1222, 42.0729)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728B1 #B1B027
analogous
#276DB1 #2728B1 #6B27B1
triadic
#2728B1 #B12728 #28B127
tetradic
#2728B1 #B1276D #B1B027 #27B16B
square
#2728B1 #B1276D #B1B027 #27B16B
split-complementary
#2728B1 #B16B27 #6DB127
monochromatic
#11114D #1C1D7F #2728B1 #4041D5 #7273E0

Accessibility & contrast

On white

10.37
#2728B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2728B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728B1
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728B1#FFFFFF#000000##FFFFFF
##2728B11.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2728b1;
/* rgb */ color: rgb(39, 40, 177);
/* oklch */ color: oklch(39.1% 0.207 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a64ca',
    500: '#2728b1',
    950: '#000000',
  },
}
SCSS
$custom: #2728b1;
$custom-light: #7a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2728b1",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 239.565,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39134,
    "c": 0.20676,
    "h": 271.3
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#2728B1
secondary
#C7C66D
accent
#E641E7
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2728B1

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

Preview Lab → · Contrast checker → · Palette generator →

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