#28319A#28319A

#28319A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.168 H 271.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#28319A
RGBrgb(40, 49, 154)
HSLhsl(235, 59%, 38%)
HSVhsv(235, 74%, 60%)
CMYKcmyk(74%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.68, 33.36, -58.15)
CIE-LCHlch(26.68, 67.04, 299.84°)
OKLaboklab(38.15% 0.0049 -0.1682)
OKLCHoklch(38.15% 0.168 271.7)
XYZxyz(7.8041, 4.9800, 31.1155)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28319A #9A9128
analogous
#286A9A #28319A #58289A
triadic
#28319A #9A2831 #319A28
tetradic
#28319A #9A286A #9A9128 #289A58
square
#28319A #9A286A #9A9128 #289A58
split-complementary
#28319A #9A5828 #6A9A28
monochromatic
#0F1239 #1B2269 #28319A #3541CA #656ED7

Accessibility & contrast

On white

10.52
#28319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#28319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28319A
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28319A#FFFFFF#000000##FFFFFF
##28319A1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28319a;
/* rgb */ color: rgb(40, 49, 154);
/* oklch */ color: oklch(38.1% 0.168 271.7);
Tailwind
colors: {
  custom: {
    50: '#7469b9',
    500: '#28319a',
    950: '#000000',
  },
}
SCSS
$custom: #28319a;
$custom-light: #7469b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28319a",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 235.263,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.16823,
    "h": 271.7
  },
  "luminance": 0.04981
}

Semantic roles & 50–950 ramp

primary
#28319A
secondary
#BDB661
accent
#D646E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #28319A

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

Preview Lab → · Contrast checker → · Palette generator →

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