#28258D#28258D

#28258D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.165 H 274.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#28258D
RGBrgb(40, 37, 141)
HSLhsl(242, 58%, 35%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(71.6%, 73.8%, 0%, 44.7%)
CIE-LABlab(22.64, 36.25, -56.77)
CIE-LCHlch(22.64, 67.36, 302.56°)
OKLaboklab(34.85% 0.0141 -0.1641)
OKLCHoklch(34.85% 0.165 274.9)
XYZxyz(6.3428, 3.6967, 25.5734)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28258D #8A8D25
analogous
#25568D #28258D #5C258D
triadic
#28258D #8D2825 #258D28
tetradic
#28258D #8D2556 #8A8D25 #258D5C
square
#28258D #8D2556 #8A8D25 #258D5C
split-complementary
#28258D #8D5C25 #568D25
monochromatic
#0C0C2C #1A185D #28258D #3632BD #5D59D3

Accessibility & contrast

On white

12.07
#28258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#28258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28258D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28258D#FFFFFF#000000##FFFFFF
##28258D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28258d;
/* rgb */ color: rgb(40, 37, 141);
/* oklch */ color: oklch(34.9% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#7261af',
    500: '#28258d',
    950: '#000000',
  },
}
SCSS
$custom: #28258d;
$custom-light: #7261af;
$custom-dark: #000000;
JSON
{
  "hex": "#28258d",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 241.731,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34852,
    "c": 0.16473,
    "h": 274.9
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#28258D
secondary
#B5B856
accent
#E246DD
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #28258D

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

Preview Lab → · Contrast checker → · Palette generator →

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