#28317E#28317E

#28317E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.129 H 272.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#28317E
RGBrgb(40, 49, 126)
HSLhsl(234, 52%, 33%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(68.3%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.17, 22.99, -44.87)
CIE-LCHlch(24.17, 50.41, 297.13°)
OKLaboklab(35.54% 0.0065 -0.1292)
OKLCHoklch(35.54% 0.129 272.9)
XYZxyz(5.7380, 4.1536, 20.2340)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317E #7E7528
analogous
#285C7E #28317E #4A287E
triadic
#28317E #7E2831 #317E28
tetradic
#28317E #7E285C #7E7528 #287E4A
square
#28317E #7E285C #7E7528 #287E4A
split-complementary
#28317E #7E4A28 #5C7E28
monochromatic
#0B0D21 #191F50 #28317E #3743AC #5763CA

Accessibility & contrast

On white

11.47
#28317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28317E
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317E#FFFFFF#000000##FFFFFF
##28317E1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28317e;
/* rgb */ color: rgb(40, 49, 126);
/* oklch */ color: oklch(35.5% 0.129 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d69a4',
    500: '#28317e',
    950: '#000000',
  },
}
SCSS
$custom: #28317e;
$custom-light: #6d69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28317e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 233.721,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35537,
    "c": 0.12937,
    "h": 272.9
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#28317E
secondary
#AFA553
accent
#CC4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28317E

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

Preview Lab → · Contrast checker → · Palette generator →

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