#28148D#28148D

#28148D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 277.1°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#28148D
RGBrgb(40, 20, 141)
HSLhsl(250, 75%, 32%)
HSVhsv(250, 86%, 55%)
CMYKcmyk(71.6%, 85.8%, 0%, 44.7%)
CIE-LABlab(19.53, 45.17, -61.91)
CIE-LCHlch(19.53, 76.64, 306.11°)
OKLaboklab(32.67% 0.0224 -0.1789)
OKLCHoklch(32.67% 0.18 277.1)
XYZxyz(5.9314, 2.8740, 25.4363)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28148D #798D14
analogous
#143D8D #28148D #65148D
triadic
#28148D #8D2814 #148D28
tetradic
#28148D #8D143D #798D14 #148D65
square
#28148D #8D143D #798D14 #148D65
split-complementary
#28148D #8D6514 #3D8D14
monochromatic
#0A0522 #190C57 #28148D #371CC3 #5539E3

Accessibility & contrast

On white

13.33
#28148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28148D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28148D#FFFFFF#000000##FFFFFF
##28148D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28148d;
/* rgb */ color: rgb(40, 20, 141);
/* oklch */ color: oklch(32.7% 0.180 277.1);
Tailwind
colors: {
  custom: {
    50: '#7357b0',
    500: '#28148d',
    950: '#000000',
  },
}
SCSS
$custom: #28148d;
$custom-light: #7357b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28148d",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 249.917,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.18027,
    "h": 277.1
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#28148D
secondary
#ABC13C
accent
#F236D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #28148D

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

Preview Lab → · Contrast checker → · Palette generator →

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