#28258A#28258A

#28258A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.161 H 275.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#28258A
RGBrgb(40, 37, 138)
HSLhsl(242, 58%, 34%)
HSVhsv(242, 73%, 54%)
CMYKcmyk(71%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.33, 35.20, -55.41)
CIE-LCHlch(22.33, 65.65, 302.43°)
OKLaboklab(34.54% 0.0147 -0.1601)
OKLCHoklch(34.54% 0.161 275.2)
XYZxyz(6.1226, 3.6087, 24.4137)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28258A #878A25
analogous
#25558A #28258A #5B258A
triadic
#28258A #8A2825 #258A28
tetradic
#28258A #8A2555 #878A25 #258A5B
square
#28258A #8A2555 #878A25 #258A5B
split-complementary
#28258A #8A5B25 #558A25
monochromatic
#0C0B29 #1A185A #28258A #3632BA #5B57D2

Accessibility & contrast

On white

12.20
#28258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28258A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28258A#FFFFFF#000000##FFFFFF
##28258A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28258a;
/* rgb */ color: rgb(40, 37, 138);
/* oklch */ color: oklch(34.5% 0.161 275.2);
Tailwind
colors: {
  custom: {
    50: '#7161ad',
    500: '#28258a',
    950: '#000000',
  },
}
SCSS
$custom: #28258a;
$custom-light: #7161ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28258a",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 241.782,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34538,
    "c": 0.16082,
    "h": 275.2
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#28258A
secondary
#B4B754
accent
#E147DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28258A

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

Preview Lab → · Contrast checker → · Palette generator →

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