#28248F#28248F

#28248F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.168 H 274.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#28248F
RGBrgb(40, 36, 143)
HSLhsl(242, 60%, 35%)
HSVhsv(242, 75%, 56%)
CMYKcmyk(72%, 74.8%, 0%, 43.9%)
CIE-LABlab(22.64, 37.53, -58.02)
CIE-LCHlch(22.64, 69.10, 302.90°)
OKLaboklab(34.91% 0.0144 -0.1678)
OKLCHoklch(34.91% 0.168 274.9)
XYZxyz(6.4622, 3.6954, 26.3540)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28248F #8B8F24
analogous
#24558F #28248F #5D248F
triadic
#28248F #8F2824 #248F28
tetradic
#28248F #8F2455 #8B8F24 #248F5D
square
#28248F #8F2455 #8B8F24 #248F5D
split-complementary
#28248F #8F5D24 #558F24
monochromatic
#0D0B2D #1A185E #28248F #3630C0 #5D58D5

Accessibility & contrast

On white

12.07
#28248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#28248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28248F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28248F#FFFFFF#000000##FFFFFF
##28248F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28248f;
/* rgb */ color: rgb(40, 36, 143);
/* oklch */ color: oklch(34.9% 0.168 274.9);
Tailwind
colors: {
  custom: {
    50: '#7260b1',
    500: '#28248f',
    950: '#000000',
  },
}
SCSS
$custom: #28248f;
$custom-light: #7260b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28248f",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 242.243,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.16837,
    "h": 274.9
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#28248F
secondary
#B6B955
accent
#E345DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28248F

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

Preview Lab → · Contrast checker → · Palette generator →

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