#28189B#28189B

#28189B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.194 H 274.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#28189B
RGBrgb(40, 24, 155)
HSLhsl(247, 73%, 35%)
HSVhsv(247, 85%, 61%)
CMYKcmyk(74.2%, 84.5%, 0%, 39.2%)
CIE-LABlab(21.84, 47.65, -66.76)
CIE-LCHlch(21.84, 82.02, 305.52°)
OKLaboklab(34.75% 0.0166 -0.193)
OKLCHoklch(34.75% 0.194 274.9)
XYZxyz(7.1161, 3.4702, 31.2988)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28189B #8B9B18
analogous
#184A9B #28189B #69189B
triadic
#28189B #9B2818 #189B28
tetradic
#28189B #9B184A #8B9B18 #189B69
square
#28189B #9B184A #8B9B18 #189B69
split-complementary
#28189B #9B6918 #4A9B18
monochromatic
#0D0831 #1A1066 #28189B #3620D0 #5D4AE3

Accessibility & contrast

On white

12.40
#28189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28189B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28189B#FFFFFF#000000##FFFFFF
##28189B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#002E99
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28189b;
/* rgb */ color: rgb(40, 24, 155);
/* oklch */ color: oklch(34.8% 0.194 274.9);
Tailwind
colors: {
  custom: {
    50: '#765aba',
    500: '#28189b',
    950: '#000000',
  },
}
SCSS
$custom: #28189b;
$custom-light: #765aba;
$custom-dark: #000000;
JSON
{
  "hex": "#28189b",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 247.328,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.19371,
    "h": 274.9
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#28189B
secondary
#B6C54A
accent
#F038D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28189B

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

Preview Lab → · Contrast checker → · Palette generator →

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