#28339B#28339B

#28339B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.167 H 271.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#28339B
RGBrgb(40, 51, 155)
HSLhsl(234, 59%, 38%)
HSVhsv(234, 74%, 61%)
CMYKcmyk(74.2%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.25, 32.44, -57.82)
CIE-LCHlch(27.25, 66.30, 299.29°)
OKLaboklab(38.6% 0.0036 -0.1672)
OKLCHoklch(38.6% 0.167 271.2)
XYZxyz(7.9733, 5.1845, 31.5845)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28339B #9B9028
analogous
#286C9B #28339B #56289B
triadic
#28339B #9B2833 #339B28
tetradic
#28339B #9B286C #9B9028 #289B56
square
#28339B #9B286C #9B9028 #289B56
split-complementary
#28339B #9B5628 #6C9B28
monochromatic
#0F133A #1B236A #28339B #3544CB #6671D7

Accessibility & contrast

On white

10.31
#28339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#28339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28339B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28339B#FFFFFF#000000##FFFFFF
##28339B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28339b;
/* rgb */ color: rgb(40, 51, 155);
/* oklch */ color: oklch(38.6% 0.167 271.2);
Tailwind
colors: {
  custom: {
    50: '#746bb9',
    500: '#28339b',
    950: '#000000',
  },
}
SCSS
$custom: #28339b;
$custom-light: #746bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#28339b",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 234.261,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38599,
    "c": 0.16721,
    "h": 271.2
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28339B

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

Preview Lab → · Contrast checker → · Palette generator →

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