#28267E#28267E

#28267E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.144 H 276.3°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#28267E
RGBrgb(40, 38, 126)
HSLhsl(241, 54%, 32%)
HSVhsv(241, 70%, 49%)
CMYKcmyk(68.3%, 69.8%, 0%, 50.6%)
CIE-LABlab(21.37, 30.34, -49.45)
CIE-LCHlch(21.37, 58.01, 301.53°)
OKLaboklab(33.48% 0.0158 -0.1427)
OKLCHoklch(33.48% 0.144 276.3)
XYZxyz(5.3329, 3.3432, 20.0989)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28267E #7C7E26
analogous
#26507E #28267E #54267E
triadic
#28267E #7E2826 #267E28
tetradic
#28267E #7E2650 #7C7E26 #267E54
square
#28267E #7E2650 #7C7E26 #267E54
split-complementary
#28267E #7E5426 #507E26
monochromatic
#0A0A20 #19184F #28267E #3734AD #5653CB

Accessibility & contrast

On white

12.58
#28267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28267E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28267E#FFFFFF#000000##FFFFFF
##28267E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28267e;
/* rgb */ color: rgb(40, 38, 126);
/* oklch */ color: oklch(33.5% 0.144 276.3);
Tailwind
colors: {
  custom: {
    50: '#6e61a4',
    500: '#28267e',
    950: '#000000',
  },
}
SCSS
$custom: #28267e;
$custom-light: #6e61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28267e",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 241.364,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.14358,
    "h": 276.3
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#28267E
secondary
#ADB050
accent
#DD4BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28267E

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

Preview Lab → · Contrast checker → · Palette generator →

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