#28339E#28339E

#28339E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.171 H 271.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#28339E
RGBrgb(40, 51, 158)
HSLhsl(234, 60%, 39%)
HSVhsv(234, 75%, 62%)
CMYKcmyk(74.7%, 67.7%, 0%, 38%)
CIE-LABlab(27.54, 33.53, -59.18)
CIE-LCHlch(27.54, 68.02, 299.54°)
OKLaboklab(38.89% 0.0033 -0.1712)
OKLCHoklch(38.89% 0.171 271.1)
XYZxyz(8.2284, 5.2865, 32.9279)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28339E #9E9328
analogous
#286E9E #28339E #58289E
triadic
#28339E #9E2833 #339E28
tetradic
#28339E #9E286E #9E9328 #289E58
square
#28339E #9E286E #9E9328 #289E58
split-complementary
#28339E #9E5828 #6E9E28
monochromatic
#0F133C #1C236D #28339E #3745CC #6872D9

Accessibility & contrast

On white

10.21
#28339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#28339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28339E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28339E#FFFFFF#000000##FFFFFF
##28339E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28339e;
/* rgb */ color: rgb(40, 51, 158);
/* oklch */ color: oklch(38.9% 0.171 271.1);
Tailwind
colors: {
  custom: {
    50: '#756bbc',
    500: '#28339e',
    950: '#000000',
  },
}
SCSS
$custom: #28339e;
$custom-light: #756bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#28339e",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 234.407,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3889,
    "c": 0.17119,
    "h": 271.1
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#28339E
secondary
#BFB663
accent
#D445E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28339E

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

Preview Lab → · Contrast checker → · Palette generator →

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