#28298D#28298D

#28298D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.160 H 274.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#28298D
RGBrgb(40, 41, 141)
HSLhsl(239, 56%, 35%)
HSVhsv(239, 72%, 55%)
CMYKcmyk(71.6%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.54, 33.78, -55.30)
CIE-LCHlch(23.54, 64.80, 301.42°)
OKLaboklab(35.49% 0.0116 -0.1598)
OKLCHoklch(35.49% 0.16 274.2)
XYZxyz(6.4741, 3.9595, 25.6172)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28298D #8D8C28
analogous
#285B8D #28298D #59288D
triadic
#28298D #8D2829 #298D28
tetradic
#28298D #8D285B #8D8C28 #288D59
square
#28298D #8D285B #8D8C28 #288D59
split-complementary
#28298D #8D5928 #5B8D28
monochromatic
#0D0D2E #1A1B5D #28298D #3637BD #5E5FD1

Accessibility & contrast

On white

11.72
#28298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28298D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28298D#FFFFFF#000000##FFFFFF
##28298D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28298d;
/* rgb */ color: rgb(40, 41, 141);
/* oklch */ color: oklch(35.5% 0.160 274.2);
Tailwind
colors: {
  custom: {
    50: '#7163af',
    500: '#28298d',
    950: '#000000',
  },
}
SCSS
$custom: #28298d;
$custom-light: #7163af;
$custom-dark: #000000;
JSON
{
  "hex": "#28298d",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 239.406,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35494,
    "c": 0.16025,
    "h": 274.2
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#28298D
secondary
#B7B65A
accent
#DE49DF
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #28298D

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

Preview Lab → · Contrast checker → · Palette generator →

#28298D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva