#28259E#28259E

#28259E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.186 H 273.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#28259E
RGBrgb(40, 37, 158)
HSLhsl(241, 62%, 38%)
HSVhsv(241, 77%, 62%)
CMYKcmyk(74.7%, 76.6%, 0%, 38%)
CIE-LABlab(24.46, 42.03, -64.26)
CIE-LCHlch(24.46, 76.78, 303.19°)
OKLaboklab(36.68% 0.0109 -0.1859)
OKLCHoklch(36.68% 0.186 273.3)
XYZxyz(7.7061, 4.2421, 32.7538)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28259E #9B9E25
analogous
#255E9E #28259E #65259E
triadic
#28259E #9E2825 #259E28
tetradic
#28259E #9E255E #9B9E25 #259E65
square
#28259E #9E255E #9B9E25 #259E65
split-complementary
#28259E #9E6525 #5E9E25
monochromatic
#0F0E3B #1B196C #28259E #3531CF #6663DA

Accessibility & contrast

On white

11.36
#28259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#28259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28259E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28259E#FFFFFF#000000##FFFFFF
##28259E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28259e;
/* rgb */ color: rgb(40, 37, 158);
/* oklch */ color: oklch(36.7% 0.186 273.3);
Tailwind
colors: {
  custom: {
    50: '#7662bc',
    500: '#28259e',
    950: '#000000',
  },
}
SCSS
$custom: #28259e;
$custom-light: #7662bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28259e",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 241.488,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.18624,
    "h": 273.3
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#28259E
secondary
#BDC05F
accent
#E543E1
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28259E

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

Preview Lab → · Contrast checker → · Palette generator →

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