#28328D#28328D

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

Color values

HEX#28328D
RGBrgb(40, 50, 141)
HSLhsl(234, 56%, 35%)
HSVhsv(234, 72%, 55%)
CMYKcmyk(71.6%, 64.5%, 0%, 44.7%)
CIE-LABlab(25.73, 27.93, -51.71)
CIE-LCHlch(25.73, 58.77, 298.37°)
OKLaboklab(37.09% 0.0052 -0.1493)
OKLCHoklch(37.09% 0.149 272)
XYZxyz(6.8218, 4.6547, 25.7331)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28328D #8D8328
analogous
#28658D #28328D #50288D
triadic
#28328D #8D2832 #328D28
tetradic
#28328D #8D2865 #8D8328 #288D50
square
#28328D #8D2865 #8D8328 #288D50
split-complementary
#28328D #8D5028 #658D28
monochromatic
#0D102E #1A215D #28328D #3643BD #5E69D1

Accessibility & contrast

On white

10.88
#28328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#28328D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28328D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28328D#FFFFFF#000000##FFFFFF
##28328D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28328d;
/* rgb */ color: rgb(40, 50, 141);
/* oklch */ color: oklch(37.1% 0.149 272.0);
Tailwind
colors: {
  custom: {
    50: '#716aaf',
    500: '#28328d',
    950: '#000000',
  },
}
SCSS
$custom: #28328d;
$custom-light: #716aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#28328d",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 234.059,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37088,
    "c": 0.14937,
    "h": 272
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#28328D
secondary
#B7AE5A
accent
#D049DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #28328D

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

Preview Lab → · Contrast checker → · Palette generator →

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