#28248C#28248C

#28248C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.165 H 275.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#28248C
RGBrgb(40, 36, 140)
HSLhsl(242, 59%, 35%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(71.4%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.32, 36.50, -56.68)
CIE-LCHlch(22.32, 67.41, 302.78°)
OKLaboklab(34.59% 0.0149 -0.1638)
OKLCHoklch(34.59% 0.165 275.2)
XYZxyz(6.2380, 3.6057, 25.1731)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28248C #888C24
analogous
#24548C #28248C #5C248C
triadic
#28248C #8C2824 #248C28
tetradic
#28248C #8C2454 #888C24 #248C5C
square
#28248C #8C2454 #888C24 #248C5C
split-complementary
#28248C #8C5C24 #548C24
monochromatic
#0C0B2B #1A175B #28248C #3631BD #5B57D4

Accessibility & contrast

On white

12.20
#28248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28248C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28248C#FFFFFF#000000##FFFFFF
##28248C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28248c;
/* rgb */ color: rgb(40, 36, 140);
/* oklch */ color: oklch(34.6% 0.165 275.2);
Tailwind
colors: {
  custom: {
    50: '#7260af',
    500: '#28248c',
    950: '#000000',
  },
}
SCSS
$custom: #28248c;
$custom-light: #7260af;
$custom-dark: #000000;
JSON
{
  "hex": "#28248c",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 242.308,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34593,
    "c": 0.16452,
    "h": 275.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#28248C
secondary
#B4B854
accent
#E246DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #28248C

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

Preview Lab → · Contrast checker → · Palette generator →

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