#28249B#28249B

#28249B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.183 H 273.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#28249B
RGBrgb(40, 36, 155)
HSLhsl(242, 62%, 37%)
HSVhsv(242, 77%, 61%)
CMYKcmyk(74.2%, 76.8%, 0%, 39.2%)
CIE-LABlab(23.93, 41.59, -63.29)
CIE-LCHlch(23.93, 75.73, 303.31°)
OKLaboklab(36.21% 0.0119 -0.1831)
OKLCHoklch(36.21% 0.183 273.7)
XYZxyz(7.4204, 4.0787, 31.4002)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28249B #979B24
analogous
#245B9B #28249B #64249B
triadic
#28249B #9B2824 #249B28
tetradic
#28249B #9B245B #979B24 #249B64
square
#28249B #9B245B #979B24 #249B64
split-complementary
#28249B #9B6424 #5B9B24
monochromatic
#0E0D38 #1B1869 #28249B #3530CD #645FDA

Accessibility & contrast

On white

11.57
#28249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#28249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28249B
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28249B#FFFFFF#000000##FFFFFF
##28249B1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28249b;
/* rgb */ color: rgb(40, 36, 155);
/* oklch */ color: oklch(36.2% 0.183 273.7);
Tailwind
colors: {
  custom: {
    50: '#7561ba',
    500: '#28249b',
    950: '#000000',
  },
}
SCSS
$custom: #28249b;
$custom-light: #7561ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28249b",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 242.017,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36212,
    "c": 0.18349,
    "h": 273.7
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#28249B
secondary
#BCBF5C
accent
#E542E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28249B

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

Preview Lab → · Contrast checker → · Palette generator →

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