#28267C#28267C

#28267C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.141 H 276.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#28267C
RGBrgb(40, 38, 124)
HSLhsl(241, 53%, 32%)
HSVhsv(241, 69%, 49%)
CMYKcmyk(67.7%, 69.4%, 0%, 51.4%)
CIE-LABlab(21.18, 29.63, -48.49)
CIE-LCHlch(21.18, 56.83, 301.42°)
OKLaboklab(33.29% 0.0161 -0.1399)
OKLCHoklch(33.29% 0.141 276.5)
XYZxyz(5.2051, 3.2921, 19.4260)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28267C #7A7C26
analogous
#264F7C #28267C #53267C
triadic
#28267C #7C2826 #267C28
tetradic
#28267C #7C264F #7A7C26 #267C53
square
#28267C #7C264F #7A7C26 #267C53
split-complementary
#28267C #7C5326 #4F7C26
monochromatic
#0A091E #19184D #28267C #3734AB #5552CA

Accessibility & contrast

On white

12.66
#28267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#28267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28267C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28267C#FFFFFF#000000##FFFFFF
##28267C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28267c;
/* rgb */ color: rgb(40, 38, 124);
/* oklch */ color: oklch(33.3% 0.141 276.5);
Tailwind
colors: {
  custom: {
    50: '#6e61a3',
    500: '#28267c',
    950: '#000000',
  },
}
SCSS
$custom: #28267c;
$custom-light: #6e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28267c",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 241.395,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.14084,
    "h": 276.5
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#28267C
secondary
#ACAE50
accent
#DC4BD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28267C

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

Preview Lab → · Contrast checker → · Palette generator →

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