#28339F#28339F

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

Color values

HEX#28339F
RGBrgb(40, 51, 159)
HSLhsl(234, 60%, 39%)
HSVhsv(234, 75%, 62%)
CMYKcmyk(74.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.63, 33.90, -59.64)
CIE-LCHlch(27.63, 68.60, 299.61°)
OKLaboklab(38.99% 0.0032 -0.1725)
OKLCHoklch(38.99% 0.173 271.1)
XYZxyz(8.3148, 5.3211, 33.3830)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28339F #9F9428
analogous
#286F9F #28339F #59289F
triadic
#28339F #9F2833 #339F28
tetradic
#28339F #9F286F #9F9428 #289F59
square
#28339F #9F286F #9F9428 #289F59
split-complementary
#28339F #9F5928 #6F9F28
monochromatic
#0F143D #1C236E #28339F #3745CD #6873D9

Accessibility & contrast

On white

10.17
#28339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28339F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28339F#FFFFFF#000000##FFFFFF
##28339F1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28339f;
/* rgb */ color: rgb(40, 51, 159);
/* oklch */ color: oklch(39.0% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#756bbc',
    500: '#28339f',
    950: '#000000',
  },
}
SCSS
$custom: #28339f;
$custom-light: #756bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#28339f",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 234.454,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38988,
    "c": 0.17251,
    "h": 271.1
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#28339F
secondary
#BFB764
accent
#D445E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28339F

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

Preview Lab → · Contrast checker → · Palette generator →

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