#28328A#28328A

#28328A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.145 H 272.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#28328A
RGBrgb(40, 50, 138)
HSLhsl(234, 55%, 35%)
HSVhsv(234, 71%, 54%)
CMYKcmyk(71%, 63.8%, 0%, 45.9%)
CIE-LABlab(25.46, 26.81, -50.28)
CIE-LCHlch(25.46, 56.98, 298.07°)
OKLaboklab(36.81% 0.0053 -0.1451)
OKLCHoklch(36.81% 0.145 272.1)
XYZxyz(6.6016, 4.5667, 24.5734)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28328A #8A8028
analogous
#28638A #28328A #4F288A
triadic
#28328A #8A2832 #328A28
tetradic
#28328A #8A2863 #8A8028 #288A4F
square
#28328A #8A2863 #8A8028 #288A4F
split-complementary
#28328A #8A4F28 #638A28
monochromatic
#0C102B #1A215B #28328A #3643B9 #5D68D0

Accessibility & contrast

On white

10.98
#28328A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28328A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28328A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28328A#FFFFFF#000000##FFFFFF
##28328A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28328a;
/* rgb */ color: rgb(40, 50, 138);
/* oklch */ color: oklch(36.8% 0.145 272.1);
Tailwind
colors: {
  custom: {
    50: '#706aad',
    500: '#28328a',
    950: '#000000',
  },
}
SCSS
$custom: #28328a;
$custom-light: #706aad;
$custom-dark: #000000;
JSON
{
  "hex": "#28328a",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 138
  },
  "hsl": {
    "h": 233.878,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36811,
    "c": 0.14519,
    "h": 272.1
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#28328A
secondary
#B5AC59
accent
#CF49DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28328A

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

Preview Lab → · Contrast checker → · Palette generator →

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