#28148F#28148F

#28148F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.9% C 0.183 H 276.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#28148F
RGBrgb(40, 20, 143)
HSLhsl(250, 75%, 32%)
HSVhsv(250, 86%, 56%)
CMYKcmyk(72%, 86%, 0%, 43.9%)
CIE-LABlab(19.78, 45.77, -62.75)
CIE-LCHlch(19.78, 77.67, 306.10°)
OKLaboklab(32.91% 0.0217 -0.1813)
OKLCHoklch(32.91% 0.183 276.8)
XYZxyz(6.0815, 2.9340, 26.2271)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28148F #7B8F14
analogous
#143E8F #28148F #66148F
triadic
#28148F #8F2814 #148F28
tetradic
#28148F #8F143E #7B8F14 #148F66
square
#28148F #8F143E #7B8F14 #148F66
split-complementary
#28148F #8F6614 #3E8F14
monochromatic
#0A0524 #190C59 #28148F #371CC5 #563AE3

Accessibility & contrast

On white

13.23
#28148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28148F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28148F#FFFFFF#000000##FFFFFF
##28148F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28148f;
/* rgb */ color: rgb(40, 20, 143);
/* oklch */ color: oklch(32.9% 0.183 276.8);
Tailwind
colors: {
  custom: {
    50: '#7457b1',
    500: '#28148f',
    950: '#000000',
  },
}
SCSS
$custom: #28148f;
$custom-light: #7457b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28148f",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 249.756,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.18261,
    "h": 276.8
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#28148F
secondary
#ADC33C
accent
#F236D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #28148F

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

Preview Lab → · Contrast checker → · Palette generator →

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