#28286D#28286D

#28286D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.2% C 0.117 H 277.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#28286D
RGBrgb(40, 40, 109)
HSLhsl(240, 46%, 29%)
HSVhsv(240, 63%, 43%)
CMYKcmyk(63.3%, 63.3%, 0%, 57.3%)
CIE-LABlab(20.33, 22.84, -40.25)
CIE-LCHlch(20.33, 46.28, 299.57°)
OKLaboklab(32.25% 0.0155 -0.1157)
OKLCHoklch(32.25% 0.117 277.6)
XYZxyz(4.3933, 3.0725, 14.8266)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28286D #6D6D28
analogous
#284B6D #28286D #4B286D
triadic
#28286D #6D2828 #286D28
tetradic
#28286D #6D284B #6D6D28 #286D4B
square
#28286D #6D284B #6D6D28 #286D4B
split-complementary
#28286D #6D4B28 #4B6D28
monochromatic
#080816 #181840 #28286D #38389A #5050BF

Accessibility & contrast

On white

13.01
#28286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28286D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28286D#FFFFFF#000000##FFFFFF
##28286D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28286d;
/* rgb */ color: rgb(40, 40, 109);
/* oklch */ color: oklch(32.2% 0.117 277.6);
Tailwind
colors: {
  custom: {
    50: '#6a6297',
    500: '#28286d',
    950: '#000000',
  },
}
SCSS
$custom: #28286d;
$custom-light: #6a6297;
$custom-dark: #000000;
JSON
{
  "hex": "#28286d",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 240,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32248,
    "c": 0.11676,
    "h": 277.6
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#28286D
secondary
#9F9F51
accent
#D652D6
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #28286D

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

Preview Lab → · Contrast checker → · Palette generator →

#28286D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva