#28198C#28198C

#28198C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.175 H 276.8°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#28198C
RGBrgb(40, 25, 140)
HSLhsl(248, 70%, 32%)
HSVhsv(248, 82%, 55%)
CMYKcmyk(71.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.20, 42.55, -60.18)
CIE-LCHlch(20.20, 73.70, 305.26°)
OKLaboklab(33.1% 0.0207 -0.1739)
OKLCHoklch(33.1% 0.175 276.8)
XYZxyz(5.9548, 3.0393, 25.0787)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28198C #7D8C19
analogous
#19448C #28198C #62198C
triadic
#28198C #8C2819 #198C28
tetradic
#28198C #8C1944 #7D8C19 #198C62
square
#28198C #8C1944 #7D8C19 #198C62
split-complementary
#28198C #8C6219 #448C19
monochromatic
#0A0624 #191058 #28198C #3722C0 #5642DD

Accessibility & contrast

On white

13.06
#28198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28198C
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28198C#FFFFFF#000000##FFFFFF
##28198C1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28198c;
/* rgb */ color: rgb(40, 25, 140);
/* oklch */ color: oklch(33.1% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#7359af',
    500: '#28198c',
    950: '#000000',
  },
}
SCSS
$custom: #28198c;
$custom-light: #7359af;
$custom-dark: #000000;
JSON
{
  "hex": "#28198c",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 247.826,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.331,
    "c": 0.17516,
    "h": 276.8
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#28198C
secondary
#AEBE43
accent
#ED3BD5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28198C

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

Preview Lab → · Contrast checker → · Palette generator →

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