#28188F#28188F

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

Color values

HEX#28188F
RGBrgb(40, 24, 143)
HSLhsl(248, 71%, 33%)
HSVhsv(248, 83%, 56%)
CMYKcmyk(72%, 83.2%, 0%, 43.9%)
CIE-LABlab(20.39, 43.97, -61.74)
CIE-LCHlch(20.39, 75.80, 305.46°)
OKLaboklab(33.33% 0.0202 -0.1784)
OKLCHoklch(33.33% 0.18 276.5)
XYZxyz(6.1580, 3.0870, 26.2526)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28188F #7F8F18
analogous
#18448F #28188F #63188F
triadic
#28188F #8F2818 #188F28
tetradic
#28188F #8F1844 #7F8F18 #188F63
square
#28188F #8F1844 #7F8F18 #188F63
split-complementary
#28188F #8F6318 #448F18
monochromatic
#0B0626 #190F5B #28188F #3721C3 #5742DF

Accessibility & contrast

On white

12.98
#28188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28188F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28188F#FFFFFF#000000##FFFFFF
##28188F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28188f;
/* rgb */ color: rgb(40, 24, 143);
/* oklch */ color: oklch(33.3% 0.180 276.5);
Tailwind
colors: {
  custom: {
    50: '#7359b1',
    500: '#28188f',
    950: '#000000',
  },
}
SCSS
$custom: #28188f;
$custom-light: #7359b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28188f",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 248.067,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.17958,
    "h": 276.5
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#28188F
secondary
#AFC043
accent
#EE3AD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28188F

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

Preview Lab → · Contrast checker → · Palette generator →

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