#28279B#28279B

#28279B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.180 H 273.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#28279B
RGBrgb(40, 39, 155)
HSLhsl(241, 60%, 38%)
HSVhsv(241, 75%, 61%)
CMYKcmyk(74.2%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.54, 39.87, -62.29)
CIE-LCHlch(24.54, 73.95, 302.62°)
OKLaboklab(36.64% 0.0105 -0.1802)
OKLCHoklch(36.64% 0.181 273.3)
XYZxyz(7.5150, 4.2680, 31.4317)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28279B #9A9B27
analogous
#27609B #28279B #62279B
triadic
#28279B #9B2827 #279B28
tetradic
#28279B #9B2760 #9A9B27 #279B62
square
#28279B #9B2760 #9A9B27 #279B62
split-complementary
#28279B #9B6227 #609B27
monochromatic
#0F0E39 #1B1B6A #28279B #3533CC #6564D8

Accessibility & contrast

On white

11.33
#28279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#28279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28279B
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28279B#FFFFFF#000000##FFFFFF
##28279B1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28279b;
/* rgb */ color: rgb(40, 39, 155);
/* oklch */ color: oklch(36.6% 0.180 273.3);
Tailwind
colors: {
  custom: {
    50: '#7563ba',
    500: '#28279b',
    950: '#000000',
  },
}
SCSS
$custom: #28279b;
$custom-light: #7563ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28279b",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 240.517,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36643,
    "c": 0.1805,
    "h": 273.3
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#28279B
secondary
#BDBE60
accent
#E345E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28279B

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

Preview Lab → · Contrast checker → · Palette generator →

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