#28337D#28337D

#28337D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.125 H 272.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#28337D
RGBrgb(40, 51, 125)
HSLhsl(232, 52%, 32%)
HSVhsv(232, 68%, 49%)
CMYKcmyk(68%, 59.2%, 0%, 51%)
CIE-LABlab(24.64, 21.23, -43.48)
CIE-LCHlch(24.64, 48.39, 296.03°)
OKLaboklab(35.86% 0.0046 -0.1251)
OKLCHoklch(35.86% 0.125 272.1)
XYZxyz(5.7593, 4.2989, 19.9243)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28337D #7D7228
analogous
#285E7D #28337D #47287D
triadic
#28337D #7D2833 #337D28
tetradic
#28337D #7D285E #7D7228 #287D47
square
#28337D #7D285E #7D7228 #287D47
split-complementary
#28337D #7D4728 #5E7D28
monochromatic
#0A0D20 #19204F #28337D #3746AB #5665C9

Accessibility & contrast

On white

11.29
#28337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#28337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28337D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28337D#FFFFFF#000000##FFFFFF
##28337D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28337d;
/* rgb */ color: rgb(40, 51, 125);
/* oklch */ color: oklch(35.9% 0.125 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d6aa3',
    500: '#28337d',
    950: '#000000',
  },
}
SCSS
$custom: #28337d;
$custom-light: #6d6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#28337d",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 232.235,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.12519,
    "h": 272.1
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#28337D
secondary
#AEA253
accent
#C94DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28337D

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

Preview Lab → · Contrast checker → · Palette generator →

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