#28286F#28286F

#28286F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.4% C 0.120 H 277.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#28286F
RGBrgb(40, 40, 111)
HSLhsl(240, 47%, 30%)
HSVhsv(240, 64%, 44%)
CMYKcmyk(64%, 64%, 0%, 56.5%)
CIE-LABlab(20.50, 23.57, -41.27)
CIE-LCHlch(20.50, 47.52, 299.73°)
OKLaboklab(32.43% 0.0154 -0.1187)
OKLCHoklch(32.43% 0.12 277.4)
XYZxyz(4.5022, 3.1161, 15.4001)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28286F #6F6F28
analogous
#284C6F #28286F #4C286F
triadic
#28286F #6F2828 #286F28
tetradic
#28286F #6F284C #6F6F28 #286F4C
square
#28286F #6F284C #6F6F28 #286F4C
split-complementary
#28286F #6F4C28 #4C6F28
monochromatic
#080816 #181842 #28286F #38389C #5151C0

Accessibility & contrast

On white

12.94
#28286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28286F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28286F#FFFFFF#000000##FFFFFF
##28286F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28286f;
/* rgb */ color: rgb(40, 40, 111);
/* oklch */ color: oklch(32.4% 0.120 277.4);
Tailwind
colors: {
  custom: {
    50: '#6b6299',
    500: '#28286f',
    950: '#000000',
  },
}
SCSS
$custom: #28286f;
$custom-light: #6b6299;
$custom-dark: #000000;
JSON
{
  "hex": "#28286f",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 240,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.1197,
    "h": 277.4
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#28286F
secondary
#A1A151
accent
#D751D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #28286F

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

Preview Lab → · Contrast checker → · Palette generator →

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