#28256A#28256A

#28256A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.4% C 0.117 H 279.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#28256A
RGBrgb(40, 37, 106)
HSLhsl(243, 48%, 28%)
HSVhsv(243, 65%, 42%)
CMYKcmyk(62.3%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.29, 23.79, -40.01)
CIE-LCHlch(19.29, 46.55, 300.74°)
OKLaboklab(31.4% 0.0187 -0.115)
OKLCHoklch(31.4% 0.117 279.2)
XYZxyz(4.1373, 2.8146, 13.9581)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28256A #676A25
analogous
#25446A #28256A #4A256A
triadic
#28256A #6A2825 #256A28
tetradic
#28256A #6A2544 #676A25 #256A4A
square
#28256A #6A2544 #676A25 #256A4A
split-complementary
#28256A #6A4A25 #446A25
monochromatic
#090817 #17153D #28256A #393597 #4F4AC0

Accessibility & contrast

On white

13.44
#28256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#28256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28256A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28256A#FFFFFF#000000##FFFFFF
##28256A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28256a;
/* rgb */ color: rgb(40, 37, 106);
/* oklch */ color: oklch(31.4% 0.117 279.2);
Tailwind
colors: {
  custom: {
    50: '#6a5f95',
    500: '#28256a',
    950: '#000000',
  },
}
SCSS
$custom: #28256a;
$custom-light: #6a5f95;
$custom-dark: #000000;
JSON
{
  "hex": "#28256a",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 242.609,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31398,
    "c": 0.11654,
    "h": 279.2
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#28256A
secondary
#9A9D4E
accent
#D850D2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28256A

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

Preview Lab → · Contrast checker → · Palette generator →

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