#28257D#28257D

#28257D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.143 H 276.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#28257D
RGBrgb(40, 37, 125)
HSLhsl(242, 54%, 32%)
HSVhsv(242, 70%, 49%)
CMYKcmyk(68%, 70.4%, 0%, 51%)
CIE-LABlab(21.04, 30.63, -49.36)
CIE-LCHlch(21.04, 58.09, 301.82°)
OKLaboklab(33.21% 0.0167 -0.1425)
OKLCHoklch(33.21% 0.143 276.7)
XYZxyz(5.2371, 3.2545, 19.7502)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28257D #7A7D25
analogous
#254E7D #28257D #54257D
triadic
#28257D #7D2825 #257D28
tetradic
#28257D #7D254E #7A7D25 #257D54
square
#28257D #7D254E #7A7D25 #257D54
split-complementary
#28257D #7D5425 #4E7D25
monochromatic
#0A091F #19174E #28257D #3733AC #5551CB

Accessibility & contrast

On white

12.72
#28257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#28257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28257D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28257D#FFFFFF#000000##FFFFFF
##28257D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28257d;
/* rgb */ color: rgb(40, 37, 125);
/* oklch */ color: oklch(33.2% 0.143 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e60a4',
    500: '#28257d',
    950: '#000000',
  },
}
SCSS
$custom: #28257d;
$custom-light: #6e60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28257d",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 242.045,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33212,
    "c": 0.14344,
    "h": 276.7
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28257D

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

Preview Lab → · Contrast checker → · Palette generator →

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