#28318B#28318B

#28318B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.148 H 272.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#28318B
RGBrgb(40, 49, 139)
HSLhsl(235, 55%, 35%)
HSVhsv(235, 71%, 55%)
CMYKcmyk(71.2%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.29, 27.85, -51.18)
CIE-LCHlch(25.29, 58.27, 298.56°)
OKLaboklab(36.71% 0.0061 -0.1477)
OKLCHoklch(36.71% 0.148 272.4)
XYZxyz(6.6320, 4.5112, 24.9423)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318B #8B8228
analogous
#28638B #28318B #50288B
triadic
#28318B #8B2831 #318B28
tetradic
#28318B #8B2863 #8B8228 #288B50
square
#28318B #8B2863 #8B8228 #288B50
split-complementary
#28318B #8B5028 #638B28
monochromatic
#0D0F2C #1A205B #28318B #3642BB #5D68D0

Accessibility & contrast

On white

11.04
#28318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#28318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28318B
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318B#FFFFFF#000000##FFFFFF
##28318B1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28318b;
/* rgb */ color: rgb(40, 49, 139);
/* oklch */ color: oklch(36.7% 0.148 272.4);
Tailwind
colors: {
  custom: {
    50: '#7069ae',
    500: '#28318b',
    950: '#000000',
  },
}
SCSS
$custom: #28318b;
$custom-light: #7069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28318b",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 234.545,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36715,
    "c": 0.14785,
    "h": 272.4
  },
  "luminance": 0.04512
}

Semantic roles & 50–950 ramp

primary
#28318B
secondary
#B6AD59
accent
#D149DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28318B

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

Preview Lab → · Contrast checker → · Palette generator →

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