#28246F#28246F

#28246F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.125 H 278.9°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#28246F
RGBrgb(40, 36, 111)
HSLhsl(243, 51%, 29%)
HSVhsv(243, 68%, 44%)
CMYKcmyk(64%, 67.6%, 0%, 56.5%)
CIE-LABlab(19.48, 26.27, -42.94)
CIE-LCHlch(19.48, 50.34, 301.46°)
OKLaboklab(31.67% 0.0193 -0.1236)
OKLCHoklch(31.67% 0.125 278.9)
XYZxyz(4.3743, 2.8602, 15.3574)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28246F #6B6F24
analogous
#24466F #28246F #4E246F
triadic
#28246F #6F2824 #246F28
tetradic
#28246F #6F2446 #6B6F24 #246F4E
square
#28246F #6F2446 #6B6F24 #246F4E
split-complementary
#28246F #6F4E24 #466F24
monochromatic
#080717 #171541 #28246F #39339D #5049C4

Accessibility & contrast

On white

13.36
#28246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#28246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28246F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28246F#FFFFFF#000000##FFFFFF
##28246F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28246f;
/* rgb */ color: rgb(40, 36, 111);
/* oklch */ color: oklch(31.7% 0.125 278.9);
Tailwind
colors: {
  custom: {
    50: '#6b5f99',
    500: '#28246f',
    950: '#000000',
  },
}
SCSS
$custom: #28246f;
$custom-light: #6b5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#28246f",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 243.2,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31675,
    "c": 0.12515,
    "h": 278.9
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#28246F
secondary
#9DA24D
accent
#DA4DD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #28246F

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

Preview Lab → · Contrast checker → · Palette generator →

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