#28299C#28299C

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

Color values

HEX#28299C
RGBrgb(40, 41, 156)
HSLhsl(239, 59%, 38%)
HSVhsv(239, 74%, 61%)
CMYKcmyk(74.4%, 73.7%, 0%, 38.8%)
CIE-LABlab(25.07, 39.03, -62.03)
CIE-LCHlch(25.07, 73.29, 302.18°)
OKLaboklab(37.05% 0.0093 -0.1795)
OKLCHoklch(37.05% 0.18 273)
XYZxyz(7.6667, 4.4365, 31.8983)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28299C #9C9B28
analogous
#28639C #28299C #61289C
triadic
#28299C #9C2829 #299C28
tetradic
#28299C #9C2863 #9C9B28 #289C61
square
#28299C #9C2863 #9C9B28 #289C61
split-complementary
#28299C #9C6128 #639C28
monochromatic
#0F0F3B #1C1C6B #28299C #3637CB #6767D8

Accessibility & contrast

On white

11.13
#28299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28299C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28299C#FFFFFF#000000##FFFFFF
##28299C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28299c;
/* rgb */ color: rgb(40, 41, 156);
/* oklch */ color: oklch(37.0% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#7564ba',
    500: '#28299c',
    950: '#000000',
  },
}
SCSS
$custom: #28299c;
$custom-light: #7564ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28299c",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 239.483,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37049,
    "c": 0.17971,
    "h": 273
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#28299C
secondary
#BEBD62
accent
#E145E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28299C

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

Preview Lab → · Contrast checker → · Palette generator →

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