#28256E#28256E

#28256E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.122 H 278.7°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#28256E
RGBrgb(40, 37, 110)
HSLhsl(242, 50%, 29%)
HSVhsv(242, 66%, 43%)
CMYKcmyk(63.6%, 66.4%, 0%, 56.9%)
CIE-LABlab(19.64, 25.24, -42.03)
CIE-LCHlch(19.64, 49.03, 300.99°)
OKLaboklab(31.77% 0.0184 -0.121)
OKLCHoklch(31.77% 0.122 278.7)
XYZxyz(4.3502, 2.8997, 15.0793)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28256E #6B6E25
analogous
#25476E #28256E #4D256E
triadic
#28256E #6E2825 #256E28
tetradic
#28256E #6E2547 #6B6E25 #256E4D
square
#28256E #6E2547 #6B6E25 #256E4D
split-complementary
#28256E #6E4D25 #476E25
monochromatic
#080817 #171640 #28256E #39349C #504BC2

Accessibility & contrast

On white

13.29
#28256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28256E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28256E#FFFFFF#000000##FFFFFF
##28256E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28256e;
/* rgb */ color: rgb(40, 37, 110);
/* oklch */ color: oklch(31.8% 0.122 278.7);
Tailwind
colors: {
  custom: {
    50: '#6b6098',
    500: '#28256e',
    950: '#000000',
  },
}
SCSS
$custom: #28256e;
$custom-light: #6b6098;
$custom-dark: #000000;
JSON
{
  "hex": "#28256e",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 242.466,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31766,
    "c": 0.12236,
    "h": 278.7
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28256E

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

Preview Lab → · Contrast checker → · Palette generator →

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