#28337E#28337E

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

Color values

HEX#28337E
RGBrgb(40, 51, 126)
HSLhsl(232, 52%, 33%)
HSVhsv(232, 68%, 49%)
CMYKcmyk(68.3%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.72, 21.61, -43.98)
CIE-LCHlch(24.72, 49.01, 296.17°)
OKLaboklab(35.94% 0.0046 -0.1266)
OKLCHoklch(35.94% 0.127 272.1)
XYZxyz(5.8235, 4.3246, 20.2625)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28337E #7E7328
analogous
#285E7E #28337E #48287E
triadic
#28337E #7E2833 #337E28
tetradic
#28337E #7E285E #7E7328 #287E48
square
#28337E #7E285E #7E7328 #287E48
split-complementary
#28337E #7E4828 #5E7E28
monochromatic
#0B0D21 #192050 #28337E #3746AC #5765CA

Accessibility & contrast

On white

11.26
#28337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#28337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28337E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28337E#FFFFFF#000000##FFFFFF
##28337E1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28337e;
/* rgb */ color: rgb(40, 51, 126);
/* oklch */ color: oklch(35.9% 0.127 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d6aa4',
    500: '#28337e',
    950: '#000000',
  },
}
SCSS
$custom: #28337e;
$custom-light: #6d6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28337e",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 232.326,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35942,
    "c": 0.12666,
    "h": 272.1
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28337E

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

Preview Lab → · Contrast checker → · Palette generator →

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