#28317A#28317A

#28317A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.124 H 273.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#28317A
RGBrgb(40, 49, 122)
HSLhsl(233, 51%, 32%)
HSVhsv(233, 67%, 48%)
CMYKcmyk(67.2%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.84, 21.48, -42.87)
CIE-LCHlch(23.84, 47.95, 296.61°)
OKLaboklab(35.19% 0.0064 -0.1233)
OKLCHoklch(35.19% 0.124 273)
XYZxyz(5.4851, 4.0524, 18.9017)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317A #7A7128
analogous
#285A7A #28317A #48287A
triadic
#28317A #7A2831 #317A28
tetradic
#28317A #7A285A #7A7128 #287A48
square
#28317A #7A285A #7A7128 #287A48
split-complementary
#28317A #7A4828 #5A7A28
monochromatic
#0A0C1E #191E4C #28317A #3744A8 #5562C7

Accessibility & contrast

On white

11.60
#28317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#28317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28317A
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317A#FFFFFF#000000##FFFFFF
##28317A1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28317a;
/* rgb */ color: rgb(40, 49, 122);
/* oklch */ color: oklch(35.2% 0.124 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c69a1',
    500: '#28317a',
    950: '#000000',
  },
}
SCSS
$custom: #28317a;
$custom-light: #6c69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28317a",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 233.415,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3519,
    "c": 0.12351,
    "h": 273
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#28317A
secondary
#ACA252
accent
#CB4EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28317A

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

Preview Lab → · Contrast checker → · Palette generator →

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