#28246B#28246B

#28246B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.119 H 279.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#28246B
RGBrgb(40, 36, 107)
HSLhsl(243, 50%, 28%)
HSVhsv(243, 66%, 42%)
CMYKcmyk(62.6%, 66.4%, 0%, 58%)
CIE-LABlab(19.12, 24.83, -40.94)
CIE-LCHlch(19.12, 47.88, 301.24°)
OKLaboklab(31.3% 0.0197 -0.1178)
OKLCHoklch(31.3% 0.119 279.5)
XYZxyz(4.1589, 2.7741, 14.2234)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28246B #676B24
analogous
#24436B #28246B #4B246B
triadic
#28246B #6B2824 #246B28
tetradic
#28246B #6B2443 #676B24 #246B4B
square
#28246B #6B2443 #676B24 #246B4B
split-complementary
#28246B #6B4B24 #436B24
monochromatic
#090817 #17153D #28246B #393399 #4F48C1

Accessibility & contrast

On white

13.51
#28246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#28246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28246B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28246B#FFFFFF#000000##FFFFFF
##28246B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28246b;
/* rgb */ color: rgb(40, 36, 107);
/* oklch */ color: oklch(31.3% 0.119 279.5);
Tailwind
colors: {
  custom: {
    50: '#6a5f96',
    500: '#28246b',
    950: '#000000',
  },
}
SCSS
$custom: #28246b;
$custom-light: #6a5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#28246b",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 243.38,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31301,
    "c": 0.11939,
    "h": 279.5
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#28246B
secondary
#9A9E4D
accent
#D94FD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28246B

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

Preview Lab → · Contrast checker → · Palette generator →

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