#28246D#28246D

#28246D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.122 H 279.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#28246D
RGBrgb(40, 36, 109)
HSLhsl(243, 50%, 28%)
HSVhsv(243, 67%, 43%)
CMYKcmyk(63.3%, 67%, 0%, 57.3%)
CIE-LABlab(19.29, 25.55, -41.94)
CIE-LCHlch(19.29, 49.11, 301.35°)
OKLaboklab(31.49% 0.0195 -0.1207)
OKLCHoklch(31.49% 0.122 279.2)
XYZxyz(4.2654, 2.8167, 14.7839)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28246D #696D24
analogous
#24446D #28246D #4C246D
triadic
#28246D #6D2824 #246D28
tetradic
#28246D #6D2444 #696D24 #246D4C
square
#28246D #6D2444 #696D24 #246D4C
split-complementary
#28246D #6D4C24 #446D24
monochromatic
#080817 #17153F #28246D #39339B #4F49C3

Accessibility & contrast

On white

13.43
#28246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#28246D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28246D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28246D#FFFFFF#000000##FFFFFF
##28246D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28246d;
/* rgb */ color: rgb(40, 36, 109);
/* oklch */ color: oklch(31.5% 0.122 279.2);
Tailwind
colors: {
  custom: {
    50: '#6a5f98',
    500: '#28246d',
    950: '#000000',
  },
}
SCSS
$custom: #28246d;
$custom-light: #6a5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#28246d",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 243.288,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31487,
    "c": 0.12228,
    "h": 279.2
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#28246D
secondary
#9CA04D
accent
#DA4ED2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #28246D

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

Preview Lab → · Contrast checker → · Palette generator →

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