#28258B#28258B

#28258B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.162 H 275.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#28258B
RGBrgb(40, 37, 139)
HSLhsl(242, 58%, 35%)
HSVhsv(242, 73%, 55%)
CMYKcmyk(71.2%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.44, 35.55, -55.87)
CIE-LCHlch(22.44, 66.22, 302.47°)
OKLaboklab(34.64% 0.0145 -0.1615)
OKLCHoklch(34.64% 0.162 275.1)
XYZxyz(6.1953, 3.6378, 24.7968)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28258B #888B25
analogous
#25558B #28258B #5B258B
triadic
#28258B #8B2825 #258B28
tetradic
#28258B #8B2555 #888B25 #258B5B
square
#28258B #8B2555 #888B25 #258B5B
split-complementary
#28258B #8B5B25 #558B25
monochromatic
#0C0B2A #1A185B #28258B #3632BB #5B58D3

Accessibility & contrast

On white

12.16
#28258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28258B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28258B#FFFFFF#000000##FFFFFF
##28258B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28258b;
/* rgb */ color: rgb(40, 37, 139);
/* oklch */ color: oklch(34.6% 0.162 275.1);
Tailwind
colors: {
  custom: {
    50: '#7161ae',
    500: '#28258b',
    950: '#000000',
  },
}
SCSS
$custom: #28258b;
$custom-light: #7161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28258b",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 241.765,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34643,
    "c": 0.16213,
    "h": 275.1
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#28258B
secondary
#B4B755
accent
#E147DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28258B

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

Preview Lab → · Contrast checker → · Palette generator →

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