#28268F#28268F

#28268F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.166 H 274.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#28268F
RGBrgb(40, 38, 143)
HSLhsl(241, 58%, 35%)
HSVhsv(241, 73%, 56%)
CMYKcmyk(72%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.07, 36.33, -57.32)
CIE-LCHlch(23.07, 67.86, 302.37°)
OKLaboklab(35.22% 0.0132 -0.1657)
OKLCHoklch(35.22% 0.166 274.5)
XYZxyz(6.5245, 3.8199, 26.3747)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28268F #8D8F26
analogous
#26588F #28268F #5C268F
triadic
#28268F #8F2826 #268F28
tetradic
#28268F #8F2658 #8D8F26 #268F5C
square
#28268F #8F2658 #8D8F26 #268F5C
split-complementary
#28268F #8F5C26 #588F26
monochromatic
#0D0C2E #1A195F #28268F #3633BF #5E5CD4

Accessibility & contrast

On white

11.90
#28268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#28268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28268F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28268F#FFFFFF#000000##FFFFFF
##28268F1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28268f;
/* rgb */ color: rgb(40, 38, 143);
/* oklch */ color: oklch(35.2% 0.166 274.5);
Tailwind
colors: {
  custom: {
    50: '#7261b1',
    500: '#28268f',
    950: '#000000',
  },
}
SCSS
$custom: #28268f;
$custom-light: #7261b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28268f",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 241.143,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35218,
    "c": 0.16623,
    "h": 274.5
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#28268F
secondary
#B7B958
accent
#E147DE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28268F

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

Preview Lab → · Contrast checker → · Palette generator →

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