#28249D#28249D

#28249D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.186 H 273.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#28249D
RGBrgb(40, 36, 157)
HSLhsl(242, 63%, 38%)
HSVhsv(242, 77%, 62%)
CMYKcmyk(74.5%, 77.1%, 0%, 38.4%)
CIE-LABlab(24.15, 42.25, -64.15)
CIE-LCHlch(24.15, 76.82, 303.37°)
OKLaboklab(36.43% 0.0115 -0.1856)
OKLCHoklch(36.43% 0.186 273.5)
XYZxyz(7.5897, 4.1464, 32.2921)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28249D #999D24
analogous
#245D9D #28249D #64249D
triadic
#28249D #9D2824 #249D28
tetradic
#28249D #9D245D #999D24 #249D64
square
#28249D #9D245D #999D24 #249D64
split-complementary
#28249D #9D6424 #5D9D24
monochromatic
#0F0D39 #1B196B #28249D #352FCF #6561DB

Accessibility & contrast

On white

11.48
#28249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28249D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28249D#FFFFFF#000000##FFFFFF
##28249D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28249d;
/* rgb */ color: rgb(40, 36, 157);
/* oklch */ color: oklch(36.4% 0.186 273.5);
Tailwind
colors: {
  custom: {
    50: '#7661bb',
    500: '#28249d',
    950: '#000000',
  },
}
SCSS
$custom: #28249d;
$custom-light: #7661bb;
$custom-dark: #000000;
JSON
{
  "hex": "#28249d",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 241.983,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36432,
    "c": 0.18596,
    "h": 273.5
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#28249D
secondary
#BDC05D
accent
#E642E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28249D

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

Preview Lab → · Contrast checker → · Palette generator →

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