#28318C#28318C

#28318C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.149 H 272.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#28318C
RGBrgb(40, 49, 140)
HSLhsl(235, 56%, 35%)
HSVhsv(235, 71%, 55%)
CMYKcmyk(71.4%, 65%, 0%, 45.1%)
CIE-LABlab(25.38, 28.22, -51.65)
CIE-LCHlch(25.38, 58.86, 298.65°)
OKLaboklab(36.81% 0.006 -0.1491)
OKLCHoklch(36.81% 0.149 272.3)
XYZxyz(6.7054, 4.5405, 25.3289)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318C #8C8328
analogous
#28638C #28318C #51288C
triadic
#28318C #8C2831 #318C28
tetradic
#28318C #8C2863 #8C8328 #288C51
square
#28318C #8C2863 #8C8328 #288C51
split-complementary
#28318C #8C5128 #638C28
monochromatic
#0D102D #1A205C #28318C #3642BC #5E68D1

Accessibility & contrast

On white

11.01
#28318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28318C
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318C#FFFFFF#000000##FFFFFF
##28318C1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28318c;
/* rgb */ color: rgb(40, 49, 140);
/* oklch */ color: oklch(36.8% 0.149 272.3);
Tailwind
colors: {
  custom: {
    50: '#7069ae',
    500: '#28318c',
    950: '#000000',
  },
}
SCSS
$custom: #28318c;
$custom-light: #7069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28318c",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 234.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36808,
    "c": 0.14924,
    "h": 272.3
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#28318C
secondary
#B6AE5A
accent
#D149DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #28318C

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

Preview Lab → · Contrast checker → · Palette generator →

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