#28318D#28318D

#28318D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.151 H 272.3°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#28318D
RGBrgb(40, 49, 141)
HSLhsl(235, 56%, 35%)
HSVhsv(235, 72%, 55%)
CMYKcmyk(71.6%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.47, 28.59, -52.13)
CIE-LCHlch(25.47, 59.45, 298.75°)
OKLaboklab(36.9% 0.006 -0.1505)
OKLCHoklch(36.9% 0.151 272.3)
XYZxyz(6.7795, 4.5702, 25.7190)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318D #8D8428
analogous
#28648D #28318D #51288D
triadic
#28318D #8D2831 #318D28
tetradic
#28318D #8D2864 #8D8428 #288D51
square
#28318D #8D2864 #8D8428 #288D51
split-complementary
#28318D #8D5128 #648D28
monochromatic
#0D102E #1A205D #28318D #3642BD #5E68D1

Accessibility & contrast

On white

10.97
#28318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28318D
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318D#FFFFFF#000000##FFFFFF
##28318D1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28318d;
/* rgb */ color: rgb(40, 49, 141);
/* oklch */ color: oklch(36.9% 0.151 272.3);
Tailwind
colors: {
  custom: {
    50: '#7169af',
    500: '#28318d',
    950: '#000000',
  },
}
SCSS
$custom: #28318d;
$custom-light: #7169af;
$custom-dark: #000000;
JSON
{
  "hex": "#28318d",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 234.653,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36902,
    "c": 0.15063,
    "h": 272.3
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#28318D
secondary
#B7AE5A
accent
#D249DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #28318D

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

Preview Lab → · Contrast checker → · Palette generator →

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