#28304A#28304A

#28304A is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.4% C 0.048 H 270.4°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#28304A
RGBrgb(40, 48, 74)
HSLhsl(226, 30%, 22%)
HSVhsv(226, 46%, 29%)
CMYKcmyk(45.9%, 35.1%, 0%, 71%)
CIE-LABlab(20.28, 4.53, -17.19)
CIE-LCHlch(20.28, 17.77, 284.76°)
OKLaboklab(31.44% 0.0003 -0.0481)
OKLCHoklch(31.44% 0.048 270.4)
XYZxyz(3.1677, 3.0593, 6.9008)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28304A #4A4228
analogous
#28414A #28304A #31284A
triadic
#28304A #4A2830 #304A28
tetradic
#28304A #4A2841 #4A4228 #284A31
square
#28304A #4A2841 #4A4228 #284A31
split-complementary
#28304A #4A3128 #414A28
monochromatic
#0B0D14 #131622 #28304A #3D4A72 #536499

Accessibility & contrast

On white

13.03
#28304A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28304A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28304A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28304A#FFFFFF#000000##FFFFFF
##28304A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27324B
Deuteranopia (green-blind)
#243049
Tritanopia (blue-blind)
#1D3539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28304a;
/* rgb */ color: rgb(40, 48, 74);
/* oklch */ color: oklch(31.4% 0.048 270.4);
Tailwind
colors: {
  custom: {
    50: '#64687c',
    500: '#28304a',
    950: '#000000',
  },
}
SCSS
$custom: #28304a;
$custom-light: #64687c;
$custom-dark: #000000;
JSON
{
  "hex": "#28304a",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 74
  },
  "hsl": {
    "h": 225.882,
    "s": 29.825,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.0481,
    "h": 270.4
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#28304A
secondary
#7C7251
accent
#AE62C6
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#050609
muted
#7A7A7B

Preview Lab

Preview with #28304A

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

Preview Lab → · Contrast checker → · Palette generator →

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