#28198F#28198F

#28198F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.179 H 276.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#28198F
RGBrgb(40, 25, 143)
HSLhsl(248, 70%, 33%)
HSVhsv(248, 83%, 56%)
CMYKcmyk(72%, 82.5%, 0%, 43.9%)
CIE-LABlab(20.55, 43.49, -61.47)
CIE-LCHlch(20.55, 75.30, 305.28°)
OKLaboklab(33.45% 0.0198 -0.1777)
OKLCHoklch(33.45% 0.179 276.4)
XYZxyz(6.1790, 3.1290, 26.2596)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28198F #808F19
analogous
#19458F #28198F #63198F
triadic
#28198F #8F2819 #198F28
tetradic
#28198F #8F1945 #808F19 #198F63
square
#28198F #8F1945 #808F19 #198F63
split-complementary
#28198F #8F6319 #458F19
monochromatic
#0B0727 #19105B #28198F #3722C3 #5844DE

Accessibility & contrast

On white

12.92
#28198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#28198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28198F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28198F#FFFFFF#000000##FFFFFF
##28198F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28198f;
/* rgb */ color: rgb(40, 25, 143);
/* oklch */ color: oklch(33.4% 0.179 276.4);
Tailwind
colors: {
  custom: {
    50: '#735ab1',
    500: '#28198f',
    950: '#000000',
  },
}
SCSS
$custom: #28198f;
$custom-light: #735ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#28198f",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 247.627,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.17876,
    "h": 276.4
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28198F

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

Preview Lab → · Contrast checker → · Palette generator →

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