#2728B3#2728B3

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

Color values

HEX#2728B3
RGBrgb(39, 40, 179)
HSLhsl(240, 64%, 43%)
HSVhsv(240, 78%, 70%)
CMYKcmyk(78.2%, 77.7%, 0%, 29.8%)
CIE-LABlab(27.30, 47.24, -72.22)
CIE-LCHlch(27.30, 86.30, 303.19°)
OKLaboklab(39.36% 0.0043 -0.2091)
OKLCHoklch(39.36% 0.209 271.2)
XYZxyz(9.7294, 5.2025, 43.1305)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728B3 #B3B227
analogous
#276EB3 #2728B3 #6C27B3
triadic
#2728B3 #B32728 #28B327
tetradic
#2728B3 #B3276E #B3B227 #27B36C
square
#2728B3 #B3276E #B3B227 #27B36C
split-complementary
#2728B3 #B36C27 #6EB327
monochromatic
#11124E #1C1D81 #2728B3 #4143D6 #7475E1

Accessibility & contrast

On white

10.29
#2728B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2728B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728B3
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728B3#FFFFFF#000000##FFFFFF
##2728B31.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2728b3;
/* rgb */ color: rgb(39, 40, 179);
/* oklch */ color: oklch(39.4% 0.209 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a64cb',
    500: '#2728b3',
    950: '#000000',
  },
}
SCSS
$custom: #2728b3;
$custom-light: #7a64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2728b3",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 239.571,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.20914,
    "h": 271.2
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2728B3

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

Preview Lab → · Contrast checker → · Palette generator →

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