#28308C#28308C

#28308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.150 H 272.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#28308C
RGBrgb(40, 48, 140)
HSLhsl(235, 56%, 35%)
HSVhsv(235, 71%, 55%)
CMYKcmyk(71.4%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.13, 28.89, -52.07)
CIE-LCHlch(25.13, 59.54, 299.02°)
OKLaboklab(36.62% 0.0068 -0.1503)
OKLCHoklch(36.62% 0.15 272.6)
XYZxyz(6.6641, 4.4578, 25.3151)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28308C #8C8428
analogous
#28628C #28308C #52288C
triadic
#28308C #8C2830 #308C28
tetradic
#28308C #8C2862 #8C8428 #288C52
square
#28308C #8C2862 #8C8428 #288C52
split-complementary
#28308C #8C5228 #628C28
monochromatic
#0D0F2D #1A205C #28308C #3640BC #5E67D1

Accessibility & contrast

On white

11.10
#28308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#28308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28308C
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28308C#FFFFFF#000000##FFFFFF
##28308C1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28308c;
/* rgb */ color: rgb(40, 48, 140);
/* oklch */ color: oklch(36.6% 0.150 272.6);
Tailwind
colors: {
  custom: {
    50: '#7068ae',
    500: '#28308c',
    950: '#000000',
  },
}
SCSS
$custom: #28308c;
$custom-light: #7068ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28308c",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 235.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36622,
    "c": 0.15049,
    "h": 272.6
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#28308C
secondary
#B6AF5A
accent
#D349DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #28308C

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

Preview Lab → · Contrast checker → · Palette generator →

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