#2728A7#2728A7

#2728A7 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.195 H 271.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2728A7
RGBrgb(39, 40, 167)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 77%, 65%)
CMYKcmyk(76.6%, 76%, 0%, 34.5%)
CIE-LABlab(25.97, 43.27, -67.21)
CIE-LCHlch(25.97, 79.93, 302.77°)
OKLaboklab(38.03% 0.0066 -0.1946)
OKLCHoklch(38.03% 0.195 271.9)
XYZxyz(8.5682, 4.7380, 37.0147)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728A7 #A7A627
analogous
#2768A7 #2728A7 #6627A7
triadic
#2728A7 #A72728 #28A727
tetradic
#2728A7 #A72768 #A7A627 #27A766
square
#2728A7 #A72768 #A7A627 #27A766
split-complementary
#2728A7 #A76627 #68A727
monochromatic
#101044 #1B1C75 #2728A7 #3A3BD1 #6C6DDD

Accessibility & contrast

On white

10.78
#2728A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2728A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728A7
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728A7#FFFFFF#000000##FFFFFF
##2728A71.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2728a7;
/* rgb */ color: rgb(39, 40, 167);
/* oklch */ color: oklch(38.0% 0.195 271.9);
Tailwind
colors: {
  custom: {
    50: '#7764c2',
    500: '#2728a7',
    950: '#000000',
  },
}
SCSS
$custom: #2728a7;
$custom-light: #7764c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2728a7",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 239.531,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38029,
    "c": 0.19467,
    "h": 271.9
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#2728A7
secondary
#C3C267
accent
#E443E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2728A7

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

Preview Lab → · Contrast checker → · Palette generator →

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