#28189F#28189F

#28189F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.198 H 274.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#28189F
RGBrgb(40, 24, 159)
HSLhsl(247, 74%, 36%)
HSVhsv(247, 85%, 62%)
CMYKcmyk(74.8%, 84.9%, 0%, 37.6%)
CIE-LABlab(22.33, 48.85, -68.39)
CIE-LCHlch(22.33, 84.05, 305.54°)
OKLaboklab(35.23% 0.0155 -0.1977)
OKLCHoklch(35.23% 0.198 274.5)
XYZxyz(7.4576, 3.6068, 33.0973)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28189F #8F9F18
analogous
#184B9F #28189F #6B189F
triadic
#28189F #9F2818 #189F28
tetradic
#28189F #9F184B #8F9F18 #189F6B
square
#28189F #9F184B #8F9F18 #189F6B
split-complementary
#28189F #9F6B18 #4B9F18
monochromatic
#0D0835 #1B106A #28189F #3520D4 #5F4DE4

Accessibility & contrast

On white

12.20
#28189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28189F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28189F#FFFFFF#000000##FFFFFF
##28189F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28189f;
/* rgb */ color: rgb(40, 24, 159);
/* oklch */ color: oklch(35.2% 0.198 274.5);
Tailwind
colors: {
  custom: {
    50: '#775abd',
    500: '#28189f',
    950: '#000000',
  },
}
SCSS
$custom: #28189f;
$custom-light: #775abd;
$custom-dark: #000000;
JSON
{
  "hex": "#28189f",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 247.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3523,
    "c": 0.19833,
    "h": 274.5
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#28189F
secondary
#B8C64D
accent
#F037DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28189F

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

Preview Lab → · Contrast checker → · Palette generator →

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