#28317F#28317F

#28317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.131 H 272.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#28317F
RGBrgb(40, 49, 127)
HSLhsl(234, 52%, 33%)
HSVhsv(234, 69%, 50%)
CMYKcmyk(68.5%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.26, 23.36, -45.36)
CIE-LCHlch(24.26, 51.03, 297.25°)
OKLaboklab(35.63% 0.0065 -0.1307)
OKLCHoklch(35.63% 0.131 272.8)
XYZxyz(5.8029, 4.1795, 20.5755)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317F #7F7628
analogous
#285C7F #28317F #4A287F
triadic
#28317F #7F2831 #317F28
tetradic
#28317F #7F285C #7F7628 #287F4A
square
#28317F #7F285C #7F7628 #287F4A
split-complementary
#28317F #7F4A28 #5C7F28
monochromatic
#0B0D22 #191F50 #28317F #3743AE #5763CA

Accessibility & contrast

On white

11.44
#28317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#28317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28317F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317F#FFFFFF#000000##FFFFFF
##28317F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28317f;
/* rgb */ color: rgb(40, 49, 127);
/* oklch */ color: oklch(35.6% 0.131 272.8);
Tailwind
colors: {
  custom: {
    50: '#6d69a5',
    500: '#28317f',
    950: '#000000',
  },
}
SCSS
$custom: #28317f;
$custom-light: #6d69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28317f",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 233.793,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35626,
    "c": 0.13082,
    "h": 272.8
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#28317F
secondary
#AFA654
accent
#CD4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #28317F

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

Preview Lab → · Contrast checker → · Palette generator →

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