#28337B#28337B

#28337B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.122 H 272.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#28337B
RGBrgb(40, 51, 123)
HSLhsl(232, 51%, 32%)
HSVhsv(232, 67%, 48%)
CMYKcmyk(67.5%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.48, 20.48, -42.48)
CIE-LCHlch(24.48, 47.16, 295.73°)
OKLaboklab(35.69% 0.0045 -0.1222)
OKLCHoklch(35.69% 0.122 272.1)
XYZxyz(5.6329, 4.2483, 19.2582)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28337B #7B7028
analogous
#285D7B #28337B #47287B
triadic
#28337B #7B2833 #337B28
tetradic
#28337B #7B285D #7B7028 #287B47
square
#28337B #7B285D #7B7028 #287B47
split-complementary
#28337B #7B4728 #5D7B28
monochromatic
#0A0D1F #19204D #28337B #3746A9 #5665C8

Accessibility & contrast

On white

11.35
#28337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#28337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28337B
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28337B#FFFFFF#000000##FFFFFF
##28337B1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28337b;
/* rgb */ color: rgb(40, 51, 123);
/* oklch */ color: oklch(35.7% 0.122 272.1);
Tailwind
colors: {
  custom: {
    50: '#6c6aa2',
    500: '#28337b',
    950: '#000000',
  },
}
SCSS
$custom: #28337b;
$custom-light: #6c6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#28337b",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 232.048,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35686,
    "c": 0.12224,
    "h": 272.1
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#28337B
secondary
#ADA152
accent
#C84DDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28337B

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

Preview Lab → · Contrast checker → · Palette generator →

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