#28267B#28267B

#28267B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.139 H 276.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#28267B
RGBrgb(40, 38, 123)
HSLhsl(241, 53%, 32%)
HSVhsv(241, 69%, 48%)
CMYKcmyk(67.5%, 69.1%, 0%, 51.8%)
CIE-LABlab(21.08, 29.27, -48.01)
CIE-LCHlch(21.08, 56.23, 301.37°)
OKLaboklab(33.19% 0.0162 -0.1385)
OKLCHoklch(33.19% 0.139 276.7)
XYZxyz(5.1422, 3.2670, 19.0947)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28267B #797B26
analogous
#264F7B #28267B #53267B
triadic
#28267B #7B2826 #267B28
tetradic
#28267B #7B264F #797B26 #267B53
square
#28267B #7B264F #797B26 #267B53
split-complementary
#28267B #7B5326 #4F7B26
monochromatic
#0A091D #19184C #28267B #3734AA #5552CA

Accessibility & contrast

On white

12.70
#28267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#28267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28267B
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28267B#FFFFFF#000000##FFFFFF
##28267B1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28267b;
/* rgb */ color: rgb(40, 38, 123);
/* oklch */ color: oklch(33.2% 0.139 276.7);
Tailwind
colors: {
  custom: {
    50: '#6d61a2',
    500: '#28267b',
    950: '#000000',
  },
}
SCSS
$custom: #28267b;
$custom-light: #6d61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28267b",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 241.412,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.13945,
    "h": 276.7
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#28267B
secondary
#ABAD50
accent
#DC4CD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28267B

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

Preview Lab → · Contrast checker → · Palette generator →

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