#28299B#28299B

#28299B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.178 H 273.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#28299B
RGBrgb(40, 41, 155)
HSLhsl(239, 59%, 38%)
HSVhsv(239, 74%, 61%)
CMYKcmyk(74.2%, 73.5%, 0%, 39.2%)
CIE-LABlab(24.96, 38.69, -61.59)
CIE-LCHlch(24.96, 72.73, 302.13°)
OKLaboklab(36.94% 0.0094 -0.1782)
OKLCHoklch(36.94% 0.178 273)
XYZxyz(7.5824, 4.4028, 31.4542)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28299B #9B9A28
analogous
#28629B #28299B #60289B
triadic
#28299B #9B2829 #299B28
tetradic
#28299B #9B2862 #9B9A28 #289B60
square
#28299B #9B2862 #9B9A28 #289B60
split-complementary
#28299B #9B6028 #629B28
monochromatic
#0F0F3A #1B1C6A #28299B #3537CB #6667D7

Accessibility & contrast

On white

11.17
#28299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#28299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28299B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28299B#FFFFFF#000000##FFFFFF
##28299B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28299b;
/* rgb */ color: rgb(40, 41, 155);
/* oklch */ color: oklch(36.9% 0.178 273.0);
Tailwind
colors: {
  custom: {
    50: '#7564ba',
    500: '#28299b',
    950: '#000000',
  },
}
SCSS
$custom: #28299b;
$custom-light: #7564ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28299b",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 239.478,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36944,
    "c": 0.17843,
    "h": 273
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#28299B
secondary
#BDBD61
accent
#E146E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28299B

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

Preview Lab → · Contrast checker → · Palette generator →

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