#28257F#28257F

#28257F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.146 H 276.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#28257F
RGBrgb(40, 37, 127)
HSLhsl(242, 55%, 32%)
HSVhsv(242, 71%, 50%)
CMYKcmyk(68.5%, 70.9%, 0%, 50.2%)
CIE-LABlab(21.23, 31.34, -50.31)
CIE-LCHlch(21.23, 59.27, 301.92°)
OKLaboklab(33.41% 0.0164 -0.1452)
OKLCHoklch(33.41% 0.146 276.5)
XYZxyz(5.3662, 3.3061, 20.4299)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28257F #7C7F25
analogous
#254F7F #28257F #55257F
triadic
#28257F #7F2825 #257F28
tetradic
#28257F #7F254F #7C7F25 #257F55
square
#28257F #7F254F #7C7F25 #257F55
split-complementary
#28257F #7F5525 #4F7F25
monochromatic
#0A0920 #191750 #28257F #3733AE #5652CD

Accessibility & contrast

On white

12.64
#28257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#28257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28257F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28257F#FFFFFF#000000##FFFFFF
##28257F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28257f;
/* rgb */ color: rgb(40, 37, 127);
/* oklch */ color: oklch(33.4% 0.146 276.5);
Tailwind
colors: {
  custom: {
    50: '#6e60a5',
    500: '#28257f',
    950: '#000000',
  },
}
SCSS
$custom: #28257f;
$custom-light: #6e60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28257f",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 242,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.14617,
    "h": 276.5
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#28257F
secondary
#ADB14F
accent
#DE4AD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28257F

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

Preview Lab → · Contrast checker → · Palette generator →

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