#28337A#28337A

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

Color values

HEX#28337A
RGBrgb(40, 51, 122)
HSLhsl(232, 51%, 32%)
HSVhsv(232, 67%, 48%)
CMYKcmyk(67.2%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.40, 20.10, -41.98)
CIE-LCHlch(24.40, 46.54, 295.58°)
OKLaboklab(35.6% 0.0045 -0.1207)
OKLCHoklch(35.6% 0.121 272.1)
XYZxyz(5.5706, 4.2234, 18.9302)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28337A #7A6F28
analogous
#285C7A #28337A #46287A
triadic
#28337A #7A2833 #337A28
tetradic
#28337A #7A285C #7A6F28 #287A46
square
#28337A #7A285C #7A6F28 #287A46
split-complementary
#28337A #7A4628 #5C7A28
monochromatic
#0A0C1E #19204C #28337A #3746A8 #5564C7

Accessibility & contrast

On white

11.38
#28337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#28337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28337A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28337A#FFFFFF#000000##FFFFFF
##28337A1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28337a;
/* rgb */ color: rgb(40, 51, 122);
/* oklch */ color: oklch(35.6% 0.121 272.1);
Tailwind
colors: {
  custom: {
    50: '#6c6aa1',
    500: '#28337a',
    950: '#000000',
  },
}
SCSS
$custom: #28337a;
$custom-light: #6c6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#28337a",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 231.951,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35602,
    "c": 0.12076,
    "h": 272.1
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#28337A
secondary
#ACA052
accent
#C74EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #28337A

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

Preview Lab → · Contrast checker → · Palette generator →

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