#28258C#28258C

#28258C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.163 H 275.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#28258C
RGBrgb(40, 37, 140)
HSLhsl(242, 58%, 35%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(71.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.54, 35.90, -56.32)
CIE-LCHlch(22.54, 66.79, 302.51°)
OKLaboklab(34.75% 0.0143 -0.1628)
OKLCHoklch(34.75% 0.163 275)
XYZxyz(6.2687, 3.6671, 25.1833)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28258C #898C25
analogous
#25558C #28258C #5C258C
triadic
#28258C #8C2825 #258C28
tetradic
#28258C #8C2555 #898C25 #258C5C
square
#28258C #8C2555 #898C25 #258C5C
split-complementary
#28258C #8C5C25 #558C25
monochromatic
#0C0B2B #1A185C #28258C #3632BC #5C58D3

Accessibility & contrast

On white

12.11
#28258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#28258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28258C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28258C#FFFFFF#000000##FFFFFF
##28258C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28258c;
/* rgb */ color: rgb(40, 37, 140);
/* oklch */ color: oklch(34.7% 0.163 275.0);
Tailwind
colors: {
  custom: {
    50: '#7161af',
    500: '#28258c',
    950: '#000000',
  },
}
SCSS
$custom: #28258c;
$custom-light: #7161af;
$custom-dark: #000000;
JSON
{
  "hex": "#28258c",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 241.748,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.16343,
    "h": 275
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#28258C
secondary
#B5B855
accent
#E146DD
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #28258C

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

Preview Lab → · Contrast checker → · Palette generator →

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