#28258F#28258F

#28258F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.167 H 274.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#28258F
RGBrgb(40, 37, 143)
HSLhsl(242, 59%, 35%)
HSVhsv(242, 74%, 56%)
CMYKcmyk(72%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.85, 36.94, -57.67)
CIE-LCHlch(22.85, 68.49, 302.64°)
OKLaboklab(35.06% 0.0138 -0.1667)
OKLCHoklch(35.06% 0.167 274.7)
XYZxyz(6.4929, 3.7568, 26.3642)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28258F #8C8F25
analogous
#25578F #28258F #5D258F
triadic
#28258F #8F2825 #258F28
tetradic
#28258F #8F2557 #8C8F25 #258F5D
square
#28258F #8F2557 #8C8F25 #258F5D
split-complementary
#28258F #8F5D25 #578F25
monochromatic
#0D0C2E #1A185E #28258F #3632C0 #5E5AD4

Accessibility & contrast

On white

11.99
#28258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#28258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28258F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28258F#FFFFFF#000000##FFFFFF
##28258F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28258f;
/* rgb */ color: rgb(40, 37, 143);
/* oklch */ color: oklch(35.1% 0.167 274.7);
Tailwind
colors: {
  custom: {
    50: '#7261b1',
    500: '#28258f',
    950: '#000000',
  },
}
SCSS
$custom: #28258f;
$custom-light: #7261b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28258f",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 241.698,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.16732,
    "h": 274.7
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#28258F
secondary
#B6B957
accent
#E246DE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28258F

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

Preview Lab → · Contrast checker → · Palette generator →

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