#28256C#28256C

#28256C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.119 H 278.9°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#28256C
RGBrgb(40, 37, 108)
HSLhsl(243, 49%, 28%)
HSVhsv(243, 66%, 42%)
CMYKcmyk(63%, 65.7%, 0%, 57.6%)
CIE-LABlab(19.46, 24.52, -41.02)
CIE-LCHlch(19.46, 47.79, 300.86°)
OKLaboklab(31.58% 0.0186 -0.118)
OKLCHoklch(31.58% 0.119 278.9)
XYZxyz(4.2426, 2.8567, 14.5123)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28256C #696C25
analogous
#25456C #28256C #4B256C
triadic
#28256C #6C2825 #256C28
tetradic
#28256C #6C2545 #696C25 #256C4B
square
#28256C #6C2545 #696C25 #256C4B
split-complementary
#28256C #6C4B25 #456C25
monochromatic
#080817 #17153E #28256C #39359A #4F4AC1

Accessibility & contrast

On white

13.36
#28256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28256C
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28256C#FFFFFF#000000##FFFFFF
##28256C1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28256c;
/* rgb */ color: rgb(40, 37, 108);
/* oklch */ color: oklch(31.6% 0.119 278.9);
Tailwind
colors: {
  custom: {
    50: '#6a6097',
    500: '#28256c',
    950: '#000000',
  },
}
SCSS
$custom: #28256c;
$custom-light: #6a6097;
$custom-dark: #000000;
JSON
{
  "hex": "#28256c",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 242.535,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31581,
    "c": 0.11946,
    "h": 278.9
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#28256C
secondary
#9C9F4E
accent
#D94FD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28256C

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

Preview Lab → · Contrast checker → · Palette generator →

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