#28399F#28399F

#28399F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.165 H 269.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#28399F
RGBrgb(40, 57, 159)
HSLhsl(231, 60%, 39%)
HSVhsv(231, 75%, 62%)
CMYKcmyk(74.8%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.11, 29.99, -57.22)
CIE-LCHlch(29.11, 64.60, 297.66°)
OKLaboklab(40.07% -0.0006 -0.1654)
OKLCHoklch(40.07% 0.165 269.8)
XYZxyz(8.5941, 5.8797, 33.4761)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28399F #9F8E28
analogous
#28759F #28399F #53289F
triadic
#28399F #9F2839 #399F28
tetradic
#28399F #9F2875 #9F8E28 #289F53
square
#28399F #9F2875 #9F8E28 #289F53
split-complementary
#28399F #9F5328 #759F28
monochromatic
#0F163D #1C276E #28399F #374DCD #6878D9

Accessibility & contrast

On white

9.65
#28399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#28399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28399F
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28399F#FFFFFF#000000##FFFFFF
##28399F1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #28399f;
/* rgb */ color: rgb(40, 57, 159);
/* oklch */ color: oklch(40.1% 0.165 269.8);
Tailwind
colors: {
  custom: {
    50: '#746fbc',
    500: '#28399f',
    950: '#000000',
  },
}
SCSS
$custom: #28399f;
$custom-light: #746fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#28399f",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 231.429,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.16536,
    "h": 269.8
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#28399F
secondary
#BFB264
accent
#CC45E3
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #28399F

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

Preview Lab → · Contrast checker → · Palette generator →

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