#2728A6#2728A6

#2728A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.193 H 272.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2728A6
RGBrgb(39, 40, 166)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 77%, 65%)
CMYKcmyk(76.5%, 75.9%, 0%, 34.9%)
CIE-LABlab(25.87, 42.93, -66.79)
CIE-LCHlch(25.87, 79.40, 302.73°)
OKLaboklab(37.92% 0.0068 -0.1933)
OKLCHoklch(37.92% 0.193 272)
XYZxyz(8.4761, 4.7012, 36.5297)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728A6 #A6A527
analogous
#2767A6 #2728A6 #6627A6
triadic
#2728A6 #A62728 #28A627
tetradic
#2728A6 #A62767 #A6A527 #27A666
square
#2728A6 #A62767 #A6A527 #27A666
split-complementary
#2728A6 #A66627 #67A627
monochromatic
#101043 #1B1C74 #2728A6 #3A3BD1 #6B6CDC

Accessibility & contrast

On white

10.82
#2728A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2728A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728A6
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728A6#FFFFFF#000000##FFFFFF
##2728A61.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2728a6;
/* rgb */ color: rgb(39, 40, 166);
/* oklch */ color: oklch(37.9% 0.193 272.0);
Tailwind
colors: {
  custom: {
    50: '#7764c2',
    500: '#2728a6',
    950: '#000000',
  },
}
SCSS
$custom: #2728a6;
$custom-light: #7764c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2728a6",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 239.528,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3792,
    "c": 0.19345,
    "h": 272
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2728A6

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

Preview Lab → · Contrast checker → · Palette generator →

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