#28256D#28256D

#28256D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.121 H 278.8°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#28256D
RGBrgb(40, 37, 109)
HSLhsl(243, 49%, 29%)
HSVhsv(243, 66%, 43%)
CMYKcmyk(63.3%, 66.1%, 0%, 57.3%)
CIE-LABlab(19.55, 24.88, -41.53)
CIE-LCHlch(19.55, 48.41, 300.93°)
OKLaboklab(31.67% 0.0185 -0.1195)
OKLCHoklch(31.67% 0.121 278.8)
XYZxyz(4.2961, 2.8781, 14.7942)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28256D #6A6D25
analogous
#25466D #28256D #4C256D
triadic
#28256D #6D2825 #256D28
tetradic
#28256D #6D2546 #6A6D25 #256D4C
square
#28256D #6D2546 #6A6D25 #256D4C
split-complementary
#28256D #6D4C25 #466D25
monochromatic
#080817 #17153F #28256D #39359B #504BC2

Accessibility & contrast

On white

13.33
#28256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28256D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28256D#FFFFFF#000000##FFFFFF
##28256D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28256d;
/* rgb */ color: rgb(40, 37, 109);
/* oklch */ color: oklch(31.7% 0.121 278.8);
Tailwind
colors: {
  custom: {
    50: '#6a6098',
    500: '#28256d',
    950: '#000000',
  },
}
SCSS
$custom: #28256d;
$custom-light: #6a6098;
$custom-dark: #000000;
JSON
{
  "hex": "#28256d",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 242.5,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31673,
    "c": 0.12091,
    "h": 278.8
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28256D

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

Preview Lab → · Contrast checker → · Palette generator →

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