#28336A#28336A

#28336A is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.3% C 0.096 H 271.9°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#28336A
RGBrgb(40, 51, 106)
HSLhsl(230, 45%, 29%)
HSVhsv(230, 62%, 42%)
CMYKcmyk(62.3%, 51.9%, 0%, 58.4%)
CIE-LABlab(23.20, 14.03, -33.68)
CIE-LCHlch(23.20, 36.48, 292.62°)
OKLaboklab(34.32% 0.0032 -0.0963)
OKLCHoklch(34.32% 0.096 271.9)
XYZxyz(4.6596, 3.8590, 14.1322)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28336A #6A5F28
analogous
#28546A #28336A #3E286A
triadic
#28336A #6A2833 #336A28
tetradic
#28336A #6A2854 #6A5F28 #286A3E
square
#28336A #6A2854 #6A5F28 #286A3E
split-complementary
#28336A #6A3E28 #546A28
monochromatic
#080B16 #171E3E #28336A #394896 #5062BD

Accessibility & contrast

On white

11.85
#28336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#28336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28336A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28336A#FFFFFF#000000##FFFFFF
##28336A1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173A6C
Deuteranopia (green-blind)
#0B3569
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28336a;
/* rgb */ color: rgb(40, 51, 106);
/* oklch */ color: oklch(34.3% 0.096 271.9);
Tailwind
colors: {
  custom: {
    50: '#696a95',
    500: '#28336a',
    950: '#000000',
  },
}
SCSS
$custom: #28336a;
$custom-light: #696a95;
$custom-dark: #000000;
JSON
{
  "hex": "#28336a",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 230,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3432,
    "c": 0.09631,
    "h": 271.9
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#28336A
secondary
#9D9051
accent
#BF53D5
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28336A

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

Preview Lab → · Contrast checker → · Palette generator →

#28336A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva