#28259B#28259B

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

Color values

HEX#28259B
RGBrgb(40, 37, 155)
HSLhsl(242, 61%, 38%)
HSVhsv(242, 76%, 61%)
CMYKcmyk(74.2%, 76.1%, 0%, 39.2%)
CIE-LABlab(24.13, 41.02, -62.96)
CIE-LCHlch(24.13, 75.15, 303.08°)
OKLaboklab(36.35% 0.0115 -0.1821)
OKLCHoklch(36.35% 0.183 273.6)
XYZxyz(7.4511, 4.1401, 31.4104)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28259B #989B25
analogous
#255D9B #28259B #63259B
triadic
#28259B #9B2825 #259B28
tetradic
#28259B #9B255D #989B25 #259B63
square
#28259B #9B255D #989B25 #259B63
split-complementary
#28259B #9B6325 #5D9B25
monochromatic
#0E0D38 #1B196A #28259B #3531CC #6461D9

Accessibility & contrast

On white

11.49
#28259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28259B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28259B#FFFFFF#000000##FFFFFF
##28259B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28259b;
/* rgb */ color: rgb(40, 37, 155);
/* oklch */ color: oklch(36.4% 0.183 273.6);
Tailwind
colors: {
  custom: {
    50: '#7561ba',
    500: '#28259b',
    950: '#000000',
  },
}
SCSS
$custom: #28259b;
$custom-light: #7561ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28259b",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 241.525,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36353,
    "c": 0.18251,
    "h": 273.6
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#28259B
secondary
#BCBF5D
accent
#E543E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28259B

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

Preview Lab → · Contrast checker → · Palette generator →

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