#28298E#28298E

#28298E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.162 H 274.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#28298E
RGBrgb(40, 41, 142)
HSLhsl(239, 56%, 36%)
HSVhsv(239, 72%, 56%)
CMYKcmyk(71.8%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.64, 34.13, -55.76)
CIE-LCHlch(23.64, 65.38, 301.47°)
OKLaboklab(35.6% 0.0115 -0.1612)
OKLCHoklch(35.6% 0.162 274.1)
XYZxyz(6.5489, 3.9894, 26.0108)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28298E #8E8D28
analogous
#285C8E #28298E #5A288E
triadic
#28298E #8E2829 #298E28
tetradic
#28298E #8E285C #8E8D28 #288E5A
square
#28298E #8E285C #8E8D28 #288E5A
split-complementary
#28298E #8E5A28 #5C8E28
monochromatic
#0D0D2F #1B1B5E #28298E #3537BE #5F60D2

Accessibility & contrast

On white

11.68
#28298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28298E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28298E#FFFFFF#000000##FFFFFF
##28298E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28298e;
/* rgb */ color: rgb(40, 41, 142);
/* oklch */ color: oklch(35.6% 0.162 274.1);
Tailwind
colors: {
  custom: {
    50: '#7263b0',
    500: '#28298e',
    950: '#000000',
  },
}
SCSS
$custom: #28298e;
$custom-light: #7263b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28298e",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 239.412,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.16158,
    "h": 274.1
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#28298E
secondary
#B7B65B
accent
#DE48DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #28298E

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

Preview Lab → · Contrast checker → · Palette generator →

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