#28198A#28198A

#28198A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.173 H 277.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#28198A
RGBrgb(40, 25, 138)
HSLhsl(248, 69%, 32%)
HSVhsv(248, 82%, 54%)
CMYKcmyk(71%, 81.9%, 0%, 45.9%)
CIE-LABlab(19.97, 41.92, -59.32)
CIE-LCHlch(19.97, 72.63, 305.25°)
OKLaboklab(32.87% 0.0213 -0.1714)
OKLCHoklch(32.87% 0.173 277.1)
XYZxyz(5.8087, 2.9808, 24.3091)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28198A #7B8A19
analogous
#19428A #28198A #61198A
triadic
#28198A #8A2819 #198A28
tetradic
#28198A #8A1942 #7B8A19 #198A61
square
#28198A #8A1942 #7B8A19 #198A61
split-complementary
#28198A #8A6119 #428A19
monochromatic
#0A0622 #191056 #28198A #3722BE #5641DD

Accessibility & contrast

On white

13.16
#28198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28198A
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28198A#FFFFFF#000000##FFFFFF
##28198A1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28198a;
/* rgb */ color: rgb(40, 25, 138);
/* oklch */ color: oklch(32.9% 0.173 277.1);
Tailwind
colors: {
  custom: {
    50: '#7259ad',
    500: '#28198a',
    950: '#000000',
  },
}
SCSS
$custom: #28198a;
$custom-light: #7259ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28198a",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 247.965,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3287,
    "c": 0.17272,
    "h": 277.1
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#28198A
secondary
#ADBD42
accent
#EC3CD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28198A

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

Preview Lab → · Contrast checker → · Palette generator →

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