#28255B#28255B

#28255B is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.1% C 0.094 H 281.7°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#28255B
RGBrgb(40, 37, 91)
HSLhsl(243, 42%, 25%)
HSVhsv(243, 59%, 36%)
CMYKcmyk(56%, 59.3%, 0%, 64.3%)
CIE-LABlab(18.05, 18.37, -32.13)
CIE-LCHlch(18.05, 37.01, 299.75°)
OKLaboklab(30.1% 0.019 -0.0919)
OKLCHoklch(30.1% 0.094 281.7)
XYZxyz(3.4244, 2.5294, 10.2033)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28255B #585B25
analogous
#253D5B #28255B #43255B
triadic
#28255B #5B2825 #255B28
tetradic
#28255B #5B253D #585B25 #255B43
square
#28255B #5B253D #585B25 #255B43
split-complementary
#28255B #5B4325 #3D5B25
monochromatic
#0A0916 #15132F #28255B #3B3787 #4E48B2

Accessibility & contrast

On white

13.94
#28255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28255B
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28255B#FFFFFF#000000##FFFFFF
##28255B1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#13313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28255b;
/* rgb */ color: rgb(40, 37, 91);
/* oklch */ color: oklch(30.1% 0.094 281.7);
Tailwind
colors: {
  custom: {
    50: '#675f8a',
    500: '#28255b',
    950: '#000000',
  },
}
SCSS
$custom: #28255b;
$custom-light: #675f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#28255b",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 243.333,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30096,
    "c": 0.09381,
    "h": 281.7
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#28255B
secondary
#8B8E4D
accent
#D256CB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #28255B

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

Preview Lab → · Contrast checker → · Palette generator →

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