#28319E#28319E

#28319E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.174 H 271.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#28319E
RGBrgb(40, 49, 158)
HSLhsl(235, 60%, 39%)
HSVhsv(235, 75%, 62%)
CMYKcmyk(74.7%, 69%, 0%, 38%)
CIE-LABlab(27.06, 34.81, -59.96)
CIE-LCHlch(27.06, 69.33, 300.14°)
OKLaboklab(38.55% 0.0045 -0.1734)
OKLCHoklch(38.55% 0.174 271.5)
XYZxyz(8.1428, 5.1155, 32.8994)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28319E #9E9528
analogous
#286C9E #28319E #5A289E
triadic
#28319E #9E2831 #319E28
tetradic
#28319E #9E286C #9E9528 #289E5A
square
#28319E #9E286C #9E9528 #289E5A
split-complementary
#28319E #9E5A28 #6C9E28
monochromatic
#0F133C #1C226D #28319E #3742CC #6870D9

Accessibility & contrast

On white

10.38
#28319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#28319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28319E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28319E#FFFFFF#000000##FFFFFF
##28319E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28319e;
/* rgb */ color: rgb(40, 49, 158);
/* oklch */ color: oklch(38.5% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#7569bc',
    500: '#28319e',
    950: '#000000',
  },
}
SCSS
$custom: #28319e;
$custom-light: #7569bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28319e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 235.424,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.17351,
    "h": 271.5
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#28319E
secondary
#BFB863
accent
#D745E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28319E

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

Preview Lab → · Contrast checker → · Palette generator →

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