#28328E#28328E

#28328E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.151 H 272.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#28328E
RGBrgb(40, 50, 142)
HSLhsl(234, 56%, 36%)
HSVhsv(234, 72%, 56%)
CMYKcmyk(71.8%, 64.8%, 0%, 44.3%)
CIE-LABlab(25.82, 28.30, -52.18)
CIE-LCHlch(25.82, 59.36, 298.47°)
OKLaboklab(37.18% 0.0052 -0.1507)
OKLCHoklch(37.18% 0.151 272)
XYZxyz(6.8965, 4.6846, 26.1267)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28328E #8E8428
analogous
#28658E #28328E #51288E
triadic
#28328E #8E2832 #328E28
tetradic
#28328E #8E2865 #8E8428 #288E51
square
#28328E #8E2865 #8E8428 #288E51
split-complementary
#28328E #8E5128 #658E28
monochromatic
#0D102F #1B215E #28328E #3543BE #5F6AD2

Accessibility & contrast

On white

10.84
#28328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#28328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28328E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28328E#FFFFFF#000000##FFFFFF
##28328E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28328e;
/* rgb */ color: rgb(40, 50, 142);
/* oklch */ color: oklch(37.2% 0.151 272.0);
Tailwind
colors: {
  custom: {
    50: '#716ab0',
    500: '#28328e',
    950: '#000000',
  },
}
SCSS
$custom: #28328e;
$custom-light: #716ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#28328e",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 234.118,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.15076,
    "h": 272
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#28328E
secondary
#B7AE5B
accent
#D148DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28328E

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

Preview Lab → · Contrast checker → · Palette generator →

#28328E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva