#28249F#28249F

#28249F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.188 H 273.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#28249F
RGBrgb(40, 36, 159)
HSLhsl(242, 63%, 38%)
HSVhsv(242, 77%, 62%)
CMYKcmyk(74.8%, 77.4%, 0%, 37.6%)
CIE-LABlab(24.37, 42.91, -65.01)
CIE-LCHlch(24.37, 77.89, 303.43°)
OKLaboklab(36.65% 0.0111 -0.1881)
OKLCHoklch(36.65% 0.188 273.4)
XYZxyz(7.7619, 4.2153, 33.1987)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28249F #9B9F24
analogous
#245D9F #28249F #65249F
triadic
#28249F #9F2824 #249F28
tetradic
#28249F #9F245D #9B9F24 #249F65
square
#28249F #9F245D #9B9F24 #249F65
split-complementary
#28249F #9F6524 #5D9F24
monochromatic
#0F0D3B #1B196D #28249F #3530D0 #6662DB

Accessibility & contrast

On white

11.39
#28249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#28249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28249F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28249F#FFFFFF#000000##FFFFFF
##28249F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28249f;
/* rgb */ color: rgb(40, 36, 159);
/* oklch */ color: oklch(36.7% 0.188 273.4);
Tailwind
colors: {
  custom: {
    50: '#7661bd',
    500: '#28249f',
    950: '#000000',
  },
}
SCSS
$custom: #28249f;
$custom-light: #7661bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28249f",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 241.951,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.18842,
    "h": 273.4
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#28249F
secondary
#BDC15E
accent
#E642E1
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28249F

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

Preview Lab → · Contrast checker → · Palette generator →

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