#28399E#28399E

#28399E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.164 H 269.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#28399E
RGBrgb(40, 57, 158)
HSLhsl(231, 60%, 39%)
HSVhsv(231, 75%, 62%)
CMYKcmyk(74.7%, 63.9%, 0%, 38%)
CIE-LABlab(29.02, 29.62, -56.75)
CIE-LCHlch(29.02, 64.02, 297.56°)
OKLaboklab(39.98% -0.0006 -0.164)
OKLCHoklch(39.98% 0.164 269.8)
XYZxyz(8.5076, 5.8451, 33.0210)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28399E #9E8D28
analogous
#28749E #28399E #52289E
triadic
#28399E #9E2839 #399E28
tetradic
#28399E #9E2874 #9E8D28 #289E52
square
#28399E #9E2874 #9E8D28 #289E52
split-complementary
#28399E #9E5228 #749E28
monochromatic
#0F163C #1C276D #28399E #374CCC #6878D9

Accessibility & contrast

On white

9.68
#28399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#28399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28399E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28399E#FFFFFF#000000##FFFFFF
##28399E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #28399e;
/* rgb */ color: rgb(40, 57, 158);
/* oklch */ color: oklch(40.0% 0.164 269.8);
Tailwind
colors: {
  custom: {
    50: '#746fbc',
    500: '#28399e',
    950: '#000000',
  },
}
SCSS
$custom: #28399e;
$custom-light: #746fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#28399e",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 231.356,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39976,
    "c": 0.16401,
    "h": 269.8
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#28399E
secondary
#BFB263
accent
#CC45E3
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #28399E

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

Preview Lab → · Contrast checker → · Palette generator →

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