#2728B2#2728B2

#2728B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.2% C 0.208 H 271.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2728B2
RGBrgb(39, 40, 178)
HSLhsl(240, 64%, 43%)
HSVhsv(240, 78%, 70%)
CMYKcmyk(78.1%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.19, 46.91, -71.81)
CIE-LCHlch(27.19, 85.77, 303.16°)
OKLaboklab(39.25% 0.0045 -0.2079)
OKLCHoklch(39.25% 0.208 271.2)
XYZxyz(9.6287, 5.1622, 42.5998)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728B2 #B2B127
analogous
#276EB2 #2728B2 #6B27B2
triadic
#2728B2 #B22728 #28B227
tetradic
#2728B2 #B2276E #B2B127 #27B26B
square
#2728B2 #B2276E #B2B127 #27B26B
split-complementary
#2728B2 #B26B27 #6EB227
monochromatic
#11114E #1C1D80 #2728B2 #4142D5 #7374E0

Accessibility & contrast

On white

10.33
#2728B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2728B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728B2
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728B2#FFFFFF#000000##FFFFFF
##2728B21.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2728b2;
/* rgb */ color: rgb(39, 40, 178);
/* oklch */ color: oklch(39.2% 0.208 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a64ca',
    500: '#2728b2',
    950: '#000000',
  },
}
SCSS
$custom: #2728b2;
$custom-light: #7a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2728b2",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 239.568,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39246,
    "c": 0.20796,
    "h": 271.2
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2728B2

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

Preview Lab → · Contrast checker → · Palette generator →

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