#28298F#28298F

#28298F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.163 H 274.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#28298F
RGBrgb(40, 41, 143)
HSLhsl(239, 56%, 36%)
HSVhsv(239, 72%, 56%)
CMYKcmyk(72%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.74, 34.49, -56.22)
CIE-LCHlch(23.74, 65.95, 301.53°)
OKLaboklab(35.7% 0.0113 -0.1625)
OKLCHoklch(35.7% 0.163 274)
XYZxyz(6.6243, 4.0195, 26.4080)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28298F #8F8E28
analogous
#285C8F #28298F #5A288F
triadic
#28298F #8F2829 #298F28
tetradic
#28298F #8F285C #8F8E28 #288F5A
square
#28298F #8F285C #8F8E28 #288F5A
split-complementary
#28298F #8F5A28 #5C8F28
monochromatic
#0D0E2F #1B1B5F #28298F #3537BF #5F60D2

Accessibility & contrast

On white

11.64
#28298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#28298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28298F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28298F#FFFFFF#000000##FFFFFF
##28298F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28298f;
/* rgb */ color: rgb(40, 41, 143);
/* oklch */ color: oklch(35.7% 0.163 274.0);
Tailwind
colors: {
  custom: {
    50: '#7263b1',
    500: '#28298f',
    950: '#000000',
  },
}
SCSS
$custom: #28298f;
$custom-light: #7263b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28298f",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 239.417,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.1629,
    "h": 274
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#28298F
secondary
#B8B75B
accent
#DE48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #28298F

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

Preview Lab → · Contrast checker → · Palette generator →

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