#28257E#28257E

#28257E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.145 H 276.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#28257E
RGBrgb(40, 37, 126)
HSLhsl(242, 55%, 32%)
HSVhsv(242, 71%, 49%)
CMYKcmyk(68.3%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.13, 30.98, -49.83)
CIE-LCHlch(21.13, 58.68, 301.87°)
OKLaboklab(33.31% 0.0166 -0.1438)
OKLCHoklch(33.31% 0.145 276.6)
XYZxyz(5.3013, 3.2802, 20.0884)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28257E #7B7E25
analogous
#254F7E #28257E #54257E
triadic
#28257E #7E2825 #257E28
tetradic
#28257E #7E254F #7B7E25 #257E54
square
#28257E #7E254F #7B7E25 #257E54
split-complementary
#28257E #7E5425 #4F7E25
monochromatic
#0A091F #19174F #28257E #3733AD #5651CC

Accessibility & contrast

On white

12.68
#28257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28257E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28257E#FFFFFF#000000##FFFFFF
##28257E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28257e;
/* rgb */ color: rgb(40, 37, 126);
/* oklch */ color: oklch(33.3% 0.145 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e60a4',
    500: '#28257e',
    950: '#000000',
  },
}
SCSS
$custom: #28257e;
$custom-light: #6e60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28257e",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 242.022,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33312,
    "c": 0.1448,
    "h": 276.6
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28257E

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

Preview Lab → · Contrast checker → · Palette generator →

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