#28308F#28308F

#28308F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.155 H 272.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#28308F
RGBrgb(40, 48, 143)
HSLhsl(235, 56%, 36%)
HSVhsv(235, 72%, 56%)
CMYKcmyk(72%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.40, 29.99, -53.48)
CIE-LCHlch(25.40, 61.31, 299.29°)
OKLaboklab(36.91% 0.0066 -0.1545)
OKLCHoklch(36.91% 0.155 272.4)
XYZxyz(6.8883, 4.5475, 26.4960)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28308F #8F8728
analogous
#28638F #28308F #53288F
triadic
#28308F #8F2830 #308F28
tetradic
#28308F #8F2863 #8F8728 #288F53
square
#28308F #8F2863 #8F8728 #288F53
split-complementary
#28308F #8F5328 #638F28
monochromatic
#0D102F #1B205F #28308F #3540BF #5F68D2

Accessibility & contrast

On white

11.00
#28308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28308F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28308F#FFFFFF#000000##FFFFFF
##28308F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28308f;
/* rgb */ color: rgb(40, 48, 143);
/* oklch */ color: oklch(36.9% 0.155 272.4);
Tailwind
colors: {
  custom: {
    50: '#7168b1',
    500: '#28308f',
    950: '#000000',
  },
}
SCSS
$custom: #28308f;
$custom-light: #7168b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28308f",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 235.34,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36907,
    "c": 0.15462,
    "h": 272.4
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#28308F
secondary
#B8B15B
accent
#D448E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28308F

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

Preview Lab → · Contrast checker → · Palette generator →

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