#28317D#28317D

#28317D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.128 H 272.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#28317D
RGBrgb(40, 49, 125)
HSLhsl(234, 52%, 32%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(68%, 60.8%, 0%, 51%)
CIE-LABlab(24.09, 22.61, -44.37)
CIE-LCHlch(24.09, 49.80, 297.00°)
OKLaboklab(35.45% 0.0065 -0.1277)
OKLCHoklch(35.45% 0.128 272.9)
XYZxyz(5.6738, 4.1279, 19.8958)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317D #7D7428
analogous
#285C7D #28317D #4A287D
triadic
#28317D #7D2831 #317D28
tetradic
#28317D #7D285C #7D7428 #287D4A
square
#28317D #7D285C #7D7428 #287D4A
split-complementary
#28317D #7D4A28 #5C7D28
monochromatic
#0A0D20 #191F4F #28317D #3743AB #5663C9

Accessibility & contrast

On white

11.50
#28317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28317D
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317D#FFFFFF#000000##FFFFFF
##28317D1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28317d;
/* rgb */ color: rgb(40, 49, 125);
/* oklch */ color: oklch(35.4% 0.128 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d69a3',
    500: '#28317d',
    950: '#000000',
  },
}
SCSS
$custom: #28317d;
$custom-light: #6d69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28317d",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 233.647,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3545,
    "c": 0.12791,
    "h": 272.9
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28317D

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

Preview Lab → · Contrast checker → · Palette generator →

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