#28299F#28299F

#28299F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.183 H 272.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#28299F
RGBrgb(40, 41, 159)
HSLhsl(239, 60%, 39%)
HSVhsv(239, 75%, 62%)
CMYKcmyk(74.8%, 74.2%, 0%, 37.6%)
CIE-LABlab(25.38, 40.06, -63.34)
CIE-LCHlch(25.38, 74.95, 302.31°)
OKLaboklab(37.37% 0.0088 -0.1833)
OKLCHoklch(37.37% 0.183 272.7)
XYZxyz(7.9239, 4.5394, 33.2527)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28299F #9F9E28
analogous
#28659F #28299F #63289F
triadic
#28299F #9F2829 #299F28
tetradic
#28299F #9F2865 #9F9E28 #289F63
square
#28299F #9F2865 #9F9E28 #289F63
split-complementary
#28299F #9F6328 #659F28
monochromatic
#0F103D #1C1C6E #28299F #3739CD #6869D9

Accessibility & contrast

On white

11.01
#28299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28299F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28299F#FFFFFF#000000##FFFFFF
##28299F1.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)
#0042A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28299f;
/* rgb */ color: rgb(40, 41, 159);
/* oklch */ color: oklch(37.4% 0.183 272.7);
Tailwind
colors: {
  custom: {
    50: '#7664bd',
    500: '#28299f',
    950: '#000000',
  },
}
SCSS
$custom: #28299f;
$custom-light: #7664bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28299f",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 239.496,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37368,
    "c": 0.18349,
    "h": 272.7
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#28299F
secondary
#BFBF64
accent
#E245E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28299F

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

Preview Lab → · Contrast checker → · Palette generator →

#28299F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva