#28318A#28318A

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

Color values

HEX#28318A
RGBrgb(40, 49, 138)
HSLhsl(234, 55%, 35%)
HSVhsv(234, 71%, 54%)
CMYKcmyk(71%, 64.5%, 0%, 45.9%)
CIE-LABlab(25.21, 27.48, -50.70)
CIE-LCHlch(25.21, 57.67, 298.46°)
OKLaboklab(36.62% 0.0061 -0.1463)
OKLCHoklch(36.62% 0.146 272.4)
XYZxyz(6.5593, 4.4821, 24.5593)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318A #8A8128
analogous
#28628A #28318A #50288A
triadic
#28318A #8A2831 #318A28
tetradic
#28318A #8A2862 #8A8128 #288A50
square
#28318A #8A2862 #8A8128 #288A50
split-complementary
#28318A #8A5028 #628A28
monochromatic
#0C0F2B #1A205B #28318A #3642B9 #5D67D0

Accessibility & contrast

On white

11.07
#28318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28318A
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318A#FFFFFF#000000##FFFFFF
##28318A1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28318a;
/* rgb */ color: rgb(40, 49, 138);
/* oklch */ color: oklch(36.6% 0.146 272.4);
Tailwind
colors: {
  custom: {
    50: '#7069ad',
    500: '#28318a',
    950: '#000000',
  },
}
SCSS
$custom: #28318a;
$custom-light: #7069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28318a",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 234.49,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36622,
    "c": 0.14646,
    "h": 272.4
  },
  "luminance": 0.04483
}

Semantic roles & 50–950 ramp

primary
#28318A
secondary
#B5AD59
accent
#D149DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28318A

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

Preview Lab → · Contrast checker → · Palette generator →

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