#28318E#28318E

#28318E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.152 H 272.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#28318E
RGBrgb(40, 49, 142)
HSLhsl(235, 56%, 36%)
HSVhsv(235, 72%, 56%)
CMYKcmyk(71.8%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.56, 28.96, -52.60)
CIE-LCHlch(25.56, 60.04, 298.84°)
OKLaboklab(37% 0.0059 -0.1519)
OKLCHoklch(37% 0.152 272.2)
XYZxyz(6.8542, 4.6001, 26.1126)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318E #8E8528
analogous
#28648E #28318E #52288E
triadic
#28318E #8E2831 #318E28
tetradic
#28318E #8E2864 #8E8528 #288E52
square
#28318E #8E2864 #8E8528 #288E52
split-complementary
#28318E #8E5228 #648E28
monochromatic
#0D102F #1B215E #28318E #3541BE #5F69D2

Accessibility & contrast

On white

10.94
#28318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#28318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28318E
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318E#FFFFFF#000000##FFFFFF
##28318E1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28318e;
/* rgb */ color: rgb(40, 49, 142);
/* oklch */ color: oklch(37.0% 0.152 272.2);
Tailwind
colors: {
  custom: {
    50: '#7169b0',
    500: '#28318e',
    950: '#000000',
  },
}
SCSS
$custom: #28318e;
$custom-light: #7169b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28318e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 234.706,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.152,
    "h": 272.2
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#28318E
secondary
#B7AF5B
accent
#D248DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28318E

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

Preview Lab → · Contrast checker → · Palette generator →

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