#28299E#28299E

#28299E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.182 H 272.8°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#28299E
RGBrgb(40, 41, 158)
HSLhsl(239, 60%, 39%)
HSVhsv(239, 75%, 62%)
CMYKcmyk(74.7%, 74.1%, 0%, 38%)
CIE-LABlab(25.27, 39.72, -62.90)
CIE-LCHlch(25.27, 74.40, 302.27°)
OKLaboklab(37.26% 0.0089 -0.182)
OKLCHoklch(37.26% 0.182 272.8)
XYZxyz(7.8375, 4.5048, 32.7976)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28299E #9E9D28
analogous
#28649E #28299E #62289E
triadic
#28299E #9E2829 #299E28
tetradic
#28299E #9E2864 #9E9D28 #289E62
square
#28299E #9E2864 #9E9D28 #289E62
split-complementary
#28299E #9E6228 #649E28
monochromatic
#0F103C #1C1C6D #28299E #3738CC #6869D9

Accessibility & contrast

On white

11.05
#28299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#28299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28299E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28299E#FFFFFF#000000##FFFFFF
##28299E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28299e;
/* rgb */ color: rgb(40, 41, 158);
/* oklch */ color: oklch(37.3% 0.182 272.8);
Tailwind
colors: {
  custom: {
    50: '#7564bc',
    500: '#28299e',
    950: '#000000',
  },
}
SCSS
$custom: #28299e;
$custom-light: #7564bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28299e",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 239.492,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37261,
    "c": 0.18223,
    "h": 272.8
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#28299E
secondary
#BFBE63
accent
#E145E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28299E

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

Preview Lab → · Contrast checker → · Palette generator →

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