#28319F#28319F

#28319F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.175 H 271.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#28319F
RGBrgb(40, 49, 159)
HSLhsl(235, 60%, 39%)
HSVhsv(235, 75%, 62%)
CMYKcmyk(74.8%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.16, 35.17, -60.41)
CIE-LCHlch(27.16, 69.90, 300.21°)
OKLaboklab(38.65% 0.0044 -0.1748)
OKLCHoklch(38.65% 0.175 271.5)
XYZxyz(8.2293, 5.1501, 33.3545)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28319F #9F9628
analogous
#286D9F #28319F #5B289F
triadic
#28319F #9F2831 #319F28
tetradic
#28319F #9F286D #9F9628 #289F5B
square
#28319F #9F286D #9F9628 #289F5B
split-complementary
#28319F #9F5B28 #6D9F28
monochromatic
#0F133D #1C226E #28319F #3743CD #6871D9

Accessibility & contrast

On white

10.34
#28319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#28319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28319F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28319F#FFFFFF#000000##FFFFFF
##28319F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28319f;
/* rgb */ color: rgb(40, 49, 159);
/* oklch */ color: oklch(38.6% 0.175 271.5);
Tailwind
colors: {
  custom: {
    50: '#7569bc',
    500: '#28319f',
    950: '#000000',
  },
}
SCSS
$custom: #28319f;
$custom-light: #7569bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28319f",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 235.462,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38645,
    "c": 0.17482,
    "h": 271.5
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#28319F
secondary
#BFB864
accent
#D745E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28319F

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

Preview Lab → · Contrast checker → · Palette generator →

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