#28268B#28268B

#28268B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.161 H 274.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#28268B
RGBrgb(40, 38, 139)
HSLhsl(241, 57%, 35%)
HSVhsv(241, 73%, 55%)
CMYKcmyk(71.2%, 72.7%, 0%, 45.5%)
CIE-LABlab(22.66, 34.94, -55.50)
CIE-LCHlch(22.66, 65.59, 302.19°)
OKLaboklab(34.8% 0.0139 -0.1604)
OKLCHoklch(34.8% 0.161 274.9)
XYZxyz(6.2268, 3.7008, 24.8073)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28268B #898B26
analogous
#26578B #28268B #5B268B
triadic
#28268B #8B2826 #268B28
tetradic
#28268B #8B2657 #898B26 #268B5B
square
#28268B #8B2657 #898B26 #268B5B
split-complementary
#28268B #8B5B26 #578B26
monochromatic
#0C0C2B #1A195B #28268B #3633BB #5C5AD2

Accessibility & contrast

On white

12.07
#28268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#28268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28268B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28268B#FFFFFF#000000##FFFFFF
##28268B1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28268b;
/* rgb */ color: rgb(40, 38, 139);
/* oklch */ color: oklch(34.8% 0.161 274.9);
Tailwind
colors: {
  custom: {
    50: '#7161ae',
    500: '#28268b',
    950: '#000000',
  },
}
SCSS
$custom: #28268b;
$custom-light: #7161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28268b",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 241.188,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.16102,
    "h": 274.9
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#28268B
secondary
#B5B756
accent
#E047DD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28268B

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

Preview Lab → · Contrast checker → · Palette generator →

#28268B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva