#2728B4#2728B4

#2728B4 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.210 H 271.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2728B4
RGBrgb(39, 40, 180)
HSLhsl(240, 64%, 43%)
HSVhsv(240, 78%, 71%)
CMYKcmyk(78.3%, 77.8%, 0%, 29.4%)
CIE-LABlab(27.42, 47.56, -72.63)
CIE-LCHlch(27.42, 86.82, 303.22°)
OKLaboklab(39.47% 0.0041 -0.2103)
OKLCHoklch(39.47% 0.21 271.1)
XYZxyz(9.8309, 5.2431, 43.6651)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728B4 #B4B327
analogous
#276FB4 #2728B4 #6C27B4
triadic
#2728B4 #B42728 #28B427
tetradic
#2728B4 #B4276F #B4B327 #27B46C
square
#2728B4 #B4276F #B4B327 #27B46C
split-complementary
#2728B4 #B46C27 #6FB427
monochromatic
#11124F #1C1D82 #2728B4 #4243D6 #7475E1

Accessibility & contrast

On white

10.25
#2728B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2728B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728B4
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728B4#FFFFFF#000000##FFFFFF
##2728B41.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0039B2
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2728b4;
/* rgb */ color: rgb(39, 40, 180);
/* oklch */ color: oklch(39.5% 0.210 271.1);
Tailwind
colors: {
  custom: {
    50: '#7b65cc',
    500: '#2728b4',
    950: '#000000',
  },
}
SCSS
$custom: #2728b4;
$custom-light: #7b65cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2728b4",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 239.574,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39469,
    "c": 0.21034,
    "h": 271.1
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#2728B4
secondary
#C8C86F
accent
#E640E7
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2728B4

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

Preview Lab → · Contrast checker → · Palette generator →

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