#28249A#28249A

#28249A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.182 H 273.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#28249A
RGBrgb(40, 36, 154)
HSLhsl(242, 62%, 37%)
HSVhsv(242, 77%, 60%)
CMYKcmyk(74%, 76.6%, 0%, 39.6%)
CIE-LABlab(23.82, 41.25, -62.86)
CIE-LCHlch(23.82, 75.19, 303.28°)
OKLaboklab(36.1% 0.0121 -0.1819)
OKLCHoklch(36.1% 0.182 273.8)
XYZxyz(7.3367, 4.0452, 30.9597)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28249A #969A24
analogous
#245B9A #28249A #63249A
triadic
#28249A #9A2824 #249A28
tetradic
#28249A #9A245B #969A24 #249A63
square
#28249A #9A245B #969A24 #249A63
split-complementary
#28249A #9A6324 #5B9A24
monochromatic
#0E0D37 #1B1868 #28249A #3530CC #635FDA

Accessibility & contrast

On white

11.61
#28249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#28249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28249A
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28249A#FFFFFF#000000##FFFFFF
##28249A1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28249a;
/* rgb */ color: rgb(40, 36, 154);
/* oklch */ color: oklch(36.1% 0.182 273.8);
Tailwind
colors: {
  custom: {
    50: '#7561b9',
    500: '#28249a',
    950: '#000000',
  },
}
SCSS
$custom: #28249a;
$custom-light: #7561b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28249a",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 242.034,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.18225,
    "h": 273.8
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#28249A
secondary
#BBBF5B
accent
#E543E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28249A

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

Preview Lab → · Contrast checker → · Palette generator →

#28249A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva