#28198D#28198D

#28198D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.176 H 276.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#28198D
RGBrgb(40, 25, 141)
HSLhsl(248, 70%, 33%)
HSVhsv(248, 82%, 55%)
CMYKcmyk(71.6%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.32, 42.86, -60.61)
CIE-LCHlch(20.32, 74.24, 305.27°)
OKLaboklab(33.22% 0.0204 -0.1752)
OKLCHoklch(33.22% 0.176 276.6)
XYZxyz(6.0289, 3.0689, 25.4688)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28198D #7E8D19
analogous
#19448D #28198D #62198D
triadic
#28198D #8D2819 #198D28
tetradic
#28198D #8D1944 #7E8D19 #198D62
square
#28198D #8D1944 #7E8D19 #198D62
split-complementary
#28198D #8D6219 #448D19
monochromatic
#0B0725 #191059 #28198D #3722C1 #5743DE

Accessibility & contrast

On white

13.01
#28198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28198D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28198D#FFFFFF#000000##FFFFFF
##28198D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28198d;
/* rgb */ color: rgb(40, 25, 141);
/* oklch */ color: oklch(33.2% 0.176 276.6);
Tailwind
colors: {
  custom: {
    50: '#735ab0',
    500: '#28198d',
    950: '#000000',
  },
}
SCSS
$custom: #28198d;
$custom-light: #735ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#28198d",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 247.759,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33216,
    "c": 0.17636,
    "h": 276.6
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28198D

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

Preview Lab → · Contrast checker → · Palette generator →

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