#28308A#28308A

#28308A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.148 H 272.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#28308A
RGBrgb(40, 48, 138)
HSLhsl(235, 55%, 35%)
HSVhsv(235, 71%, 54%)
CMYKcmyk(71%, 65.2%, 0%, 45.9%)
CIE-LABlab(24.95, 28.15, -51.12)
CIE-LCHlch(24.95, 58.35, 298.84°)
OKLaboklab(36.43% 0.0069 -0.1476)
OKLCHoklch(36.43% 0.148 272.7)
XYZxyz(6.5179, 4.3994, 24.5455)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28308A #8A8228
analogous
#28618A #28308A #51288A
triadic
#28308A #8A2830 #308A28
tetradic
#28308A #8A2861 #8A8228 #288A51
square
#28308A #8A2861 #8A8228 #288A51
split-complementary
#28308A #8A5128 #618A28
monochromatic
#0C0F2B #1A1F5B #28308A #3641B9 #5D66D0

Accessibility & contrast

On white

11.17
#28308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#28308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28308A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28308A#FFFFFF#000000##FFFFFF
##28308A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28308a;
/* rgb */ color: rgb(40, 48, 138);
/* oklch */ color: oklch(36.4% 0.148 272.7);
Tailwind
colors: {
  custom: {
    50: '#7068ad',
    500: '#28308a',
    950: '#000000',
  },
}
SCSS
$custom: #28308a;
$custom-light: #7068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28308a",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 235.102,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36434,
    "c": 0.14772,
    "h": 272.7
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#28308A
secondary
#B5AE59
accent
#D249DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28308A

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

Preview Lab → · Contrast checker → · Palette generator →

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