#2728AF#2728AF

#2728AF is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.9% C 0.204 H 271.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2728AF
RGBrgb(39, 40, 175)
HSLhsl(240, 64%, 42%)
HSVhsv(240, 78%, 69%)
CMYKcmyk(77.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(26.86, 45.93, -70.57)
CIE-LCHlch(26.86, 84.20, 303.06°)
OKLaboklab(38.91% 0.0051 -0.2043)
OKLCHoklch(38.91% 0.204 271.4)
XYZxyz(9.3307, 5.0430, 41.0308)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2728AF #AFAE27
analogous
#276CAF #2728AF #6A27AF
triadic
#2728AF #AF2728 #28AF27
tetradic
#2728AF #AF276C #AFAE27 #27AF6A
square
#2728AF #AF276C #AFAE27 #27AF6A
split-complementary
#2728AF #AF6A27 #6CAF27
monochromatic
#11114B #1C1D7D #2728AF #3F40D4 #7172DF

Accessibility & contrast

On white

10.45
#2728AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2728AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2728AF
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2728AF#FFFFFF#000000##FFFFFF
##2728AF1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2728af;
/* rgb */ color: rgb(39, 40, 175);
/* oklch */ color: oklch(38.9% 0.204 271.4);
Tailwind
colors: {
  custom: {
    50: '#7964c8',
    500: '#2728af',
    950: '#000000',
  },
}
SCSS
$custom: #2728af;
$custom-light: #7964c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2728af",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 239.559,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.20437,
    "h": 271.4
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#2728AF
secondary
#C6C66B
accent
#E541E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2728AF

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

Preview Lab → · Contrast checker → · Palette generator →

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