#28308E#28308E

#28308E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.153 H 272.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#28308E
RGBrgb(40, 48, 142)
HSLhsl(235, 56%, 36%)
HSVhsv(235, 72%, 56%)
CMYKcmyk(71.8%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.31, 29.63, -53.01)
CIE-LCHlch(25.31, 60.72, 299.20°)
OKLaboklab(36.81% 0.0066 -0.1531)
OKLCHoklch(36.81% 0.153 272.5)
XYZxyz(6.8129, 4.5174, 26.0988)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28308E #8E8628
analogous
#28638E #28308E #53288E
triadic
#28308E #8E2830 #308E28
tetradic
#28308E #8E2863 #8E8628 #288E53
square
#28308E #8E2863 #8E8628 #288E53
split-complementary
#28308E #8E5328 #638E28
monochromatic
#0D102F #1B205E #28308E #3540BE #5F68D2

Accessibility & contrast

On white

11.03
#28308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#28308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28308E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28308E#FFFFFF#000000##FFFFFF
##28308E1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28308e;
/* rgb */ color: rgb(40, 48, 142);
/* oklch */ color: oklch(36.8% 0.153 272.5);
Tailwind
colors: {
  custom: {
    50: '#7168b0',
    500: '#28308e',
    950: '#000000',
  },
}
SCSS
$custom: #28308e;
$custom-light: #7168b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28308e",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 235.294,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.15324,
    "h": 272.5
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#28308E
secondary
#B7B05B
accent
#D448DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28308E

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

Preview Lab → · Contrast checker → · Palette generator →

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