#28198E#28198E

#28198E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.178 H 276.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#28198E
RGBrgb(40, 25, 142)
HSLhsl(248, 70%, 33%)
HSVhsv(248, 82%, 56%)
CMYKcmyk(71.8%, 82.4%, 0%, 44.3%)
CIE-LABlab(20.44, 43.18, -61.04)
CIE-LCHlch(20.44, 74.77, 305.27°)
OKLaboklab(33.33% 0.0201 -0.1764)
OKLCHoklch(33.33% 0.178 276.5)
XYZxyz(6.1036, 3.0988, 25.8624)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28198E #7F8E19
analogous
#19458E #28198E #62198E
triadic
#28198E #8E2819 #198E28
tetradic
#28198E #8E1945 #7F8E19 #198E62
square
#28198E #8E1945 #7F8E19 #198E62
split-complementary
#28198E #8E6219 #458E19
monochromatic
#0B0726 #19105A #28198E #3722C2 #5743DE

Accessibility & contrast

On white

12.96
#28198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28198E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28198E#FFFFFF#000000##FFFFFF
##28198E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28198e;
/* rgb */ color: rgb(40, 25, 142);
/* oklch */ color: oklch(33.3% 0.178 276.5);
Tailwind
colors: {
  custom: {
    50: '#735ab0',
    500: '#28198e',
    950: '#000000',
  },
}
SCSS
$custom: #28198e;
$custom-light: #735ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#28198e",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 247.692,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.17756,
    "h": 276.5
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#28198E
secondary
#AFBF44
accent
#ED3BD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28198E

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

Preview Lab → · Contrast checker → · Palette generator →

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