#28319B#28319B

#28319B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.170 H 271.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#28319B
RGBrgb(40, 49, 155)
HSLhsl(235, 59%, 38%)
HSVhsv(235, 74%, 61%)
CMYKcmyk(74.2%, 68.4%, 0%, 39.2%)
CIE-LABlab(26.77, 33.73, -58.61)
CIE-LCHlch(26.77, 67.62, 299.92°)
OKLaboklab(38.25% 0.0048 -0.1695)
OKLCHoklch(38.25% 0.17 271.6)
XYZxyz(7.8878, 5.0135, 31.5560)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28319B #9B9228
analogous
#286A9B #28319B #58289B
triadic
#28319B #9B2831 #319B28
tetradic
#28319B #9B286A #9B9228 #289B58
square
#28319B #9B286A #9B9228 #289B58
split-complementary
#28319B #9B5828 #6A9B28
monochromatic
#0F123A #1B226A #28319B #3541CB #666FD7

Accessibility & contrast

On white

10.49
#28319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28319B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28319B#FFFFFF#000000##FFFFFF
##28319B1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28319b;
/* rgb */ color: rgb(40, 49, 155);
/* oklch */ color: oklch(38.2% 0.170 271.6);
Tailwind
colors: {
  custom: {
    50: '#7469b9',
    500: '#28319b',
    950: '#000000',
  },
}
SCSS
$custom: #28319b;
$custom-light: #7469b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28319b",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 235.304,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38249,
    "c": 0.16956,
    "h": 271.6
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28319B

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

Preview Lab → · Contrast checker → · Palette generator →

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