#28256B#28256B

#28256B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.5% C 0.118 H 279.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#28256B
RGBrgb(40, 37, 107)
HSLhsl(243, 49%, 28%)
HSVhsv(243, 65%, 42%)
CMYKcmyk(62.6%, 65.4%, 0%, 58%)
CIE-LABlab(19.37, 24.15, -40.52)
CIE-LCHlch(19.37, 47.17, 300.80°)
OKLaboklab(31.49% 0.0186 -0.1165)
OKLCHoklch(31.49% 0.118 279.1)
XYZxyz(4.1896, 2.8355, 14.2336)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28256B #686B25
analogous
#25456B #28256B #4B256B
triadic
#28256B #6B2825 #256B28
tetradic
#28256B #6B2545 #686B25 #256B4B
square
#28256B #6B2545 #686B25 #256B4B
split-complementary
#28256B #6B4B25 #456B25
monochromatic
#080817 #17153E #28256B #393598 #4F4AC0

Accessibility & contrast

On white

13.40
#28256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#28256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28256B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28256B#FFFFFF#000000##FFFFFF
##28256B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28256b;
/* rgb */ color: rgb(40, 37, 107);
/* oklch */ color: oklch(31.5% 0.118 279.1);
Tailwind
colors: {
  custom: {
    50: '#6a5f96',
    500: '#28256b',
    950: '#000000',
  },
}
SCSS
$custom: #28256b;
$custom-light: #6a5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#28256b",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 242.571,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31489,
    "c": 0.118,
    "h": 279.1
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28256B

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

Preview Lab → · Contrast checker → · Palette generator →

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