#28339A#28339A

#28339A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.166 H 271.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#28339A
RGBrgb(40, 51, 154)
HSLhsl(234, 59%, 38%)
HSVhsv(234, 74%, 60%)
CMYKcmyk(74%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.16, 32.07, -57.36)
CIE-LCHlch(27.16, 65.72, 299.21°)
OKLaboklab(38.5% 0.0037 -0.1658)
OKLCHoklch(38.5% 0.166 271.3)
XYZxyz(7.8897, 5.1511, 31.1440)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28339A #9A8F28
analogous
#286C9A #28339A #56289A
triadic
#28339A #9A2833 #339A28
tetradic
#28339A #9A286C #9A8F28 #289A56
square
#28339A #9A286C #9A8F28 #289A56
split-complementary
#28339A #9A5628 #6C9A28
monochromatic
#0F1339 #1B2369 #28339A #3543CA #6570D7

Accessibility & contrast

On white

10.34
#28339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#28339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28339A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28339A#FFFFFF#000000##FFFFFF
##28339A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28339a;
/* rgb */ color: rgb(40, 51, 154);
/* oklch */ color: oklch(38.5% 0.166 271.3);
Tailwind
colors: {
  custom: {
    50: '#746bb9',
    500: '#28339a',
    950: '#000000',
  },
}
SCSS
$custom: #28339a;
$custom-light: #746bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#28339a",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 234.211,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38502,
    "c": 0.16587,
    "h": 271.3
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#28339A
secondary
#BDB461
accent
#D346E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #28339A

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

Preview Lab → · Contrast checker → · Palette generator →

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