#28308D#28308D

#28308D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.152 H 272.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#28308D
RGBrgb(40, 48, 141)
HSLhsl(235, 56%, 35%)
HSVhsv(235, 72%, 55%)
CMYKcmyk(71.6%, 66%, 0%, 44.7%)
CIE-LABlab(25.22, 29.26, -52.54)
CIE-LCHlch(25.22, 60.13, 299.11°)
OKLaboklab(36.72% 0.0067 -0.1517)
OKLCHoklch(36.72% 0.152 272.5)
XYZxyz(6.7381, 4.4875, 25.7052)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28308D #8D8528
analogous
#28628D #28308D #53288D
triadic
#28308D #8D2830 #308D28
tetradic
#28308D #8D2862 #8D8528 #288D53
square
#28308D #8D2862 #8D8528 #288D53
split-complementary
#28308D #8D5328 #628D28
monochromatic
#0D102E #1A205D #28308D #3640BD #5E67D1

Accessibility & contrast

On white

11.07
#28308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#28308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28308D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28308D#FFFFFF#000000##FFFFFF
##28308D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28308d;
/* rgb */ color: rgb(40, 48, 141);
/* oklch */ color: oklch(36.7% 0.152 272.5);
Tailwind
colors: {
  custom: {
    50: '#7168af',
    500: '#28308d',
    950: '#000000',
  },
}
SCSS
$custom: #28308d;
$custom-light: #7168af;
$custom-dark: #000000;
JSON
{
  "hex": "#28308d",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 235.248,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36717,
    "c": 0.15188,
    "h": 272.5
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#28308D
secondary
#B7AF5A
accent
#D349DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #28308D

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

Preview Lab → · Contrast checker → · Palette generator →

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