#28328F#28328F

#28328F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.152 H 271.9°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#28328F
RGBrgb(40, 50, 143)
HSLhsl(234, 56%, 36%)
HSVhsv(234, 72%, 56%)
CMYKcmyk(72%, 65%, 0%, 43.9%)
CIE-LABlab(25.91, 28.67, -52.66)
CIE-LCHlch(25.91, 59.96, 298.57°)
OKLaboklab(37.28% 0.0051 -0.1521)
OKLCHoklch(37.28% 0.152 271.9)
XYZxyz(6.9719, 4.7148, 26.5239)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28328F #8F8528
analogous
#28658F #28328F #51288F
triadic
#28328F #8F2832 #328F28
tetradic
#28328F #8F2865 #8F8528 #288F51
square
#28328F #8F2865 #8F8528 #288F51
split-complementary
#28328F #8F5128 #658F28
monochromatic
#0D112F #1B215F #28328F #3543BF #5F6AD2

Accessibility & contrast

On white

10.81
#28328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28328F
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28328F#FFFFFF#000000##FFFFFF
##28328F1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28328f;
/* rgb */ color: rgb(40, 50, 143);
/* oklch */ color: oklch(37.3% 0.152 271.9);
Tailwind
colors: {
  custom: {
    50: '#716ab1',
    500: '#28328f',
    950: '#000000',
  },
}
SCSS
$custom: #28328f;
$custom-light: #716ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#28328f",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 234.175,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37275,
    "c": 0.15215,
    "h": 271.9
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#28328F
secondary
#B8AF5B
accent
#D148E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28328F

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

Preview Lab → · Contrast checker → · Palette generator →

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