#28248E#28248E

#28248E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.167 H 275.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#28248E
RGBrgb(40, 36, 142)
HSLhsl(242, 60%, 35%)
HSVhsv(242, 75%, 56%)
CMYKcmyk(71.8%, 74.6%, 0%, 44.3%)
CIE-LABlab(22.53, 37.19, -57.58)
CIE-LCHlch(22.53, 68.54, 302.86°)
OKLaboklab(34.81% 0.0145 -0.1665)
OKLCHoklch(34.81% 0.167 275)
XYZxyz(6.3868, 3.6653, 25.9568)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28248E #8A8E24
analogous
#24558E #28248E #5D248E
triadic
#28248E #8E2824 #248E28
tetradic
#28248E #8E2455 #8A8E24 #248E5D
square
#28248E #8E2455 #8A8E24 #248E5D
split-complementary
#28248E #8E5D24 #558E24
monochromatic
#0C0B2C #1A185D #28248E #3630BF #5D58D5

Accessibility & contrast

On white

12.12
#28248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#28248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28248E
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28248E#FFFFFF#000000##FFFFFF
##28248E1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28248e;
/* rgb */ color: rgb(40, 36, 142);
/* oklch */ color: oklch(34.8% 0.167 275.0);
Tailwind
colors: {
  custom: {
    50: '#7260b0',
    500: '#28248e',
    950: '#000000',
  },
}
SCSS
$custom: #28248e;
$custom-light: #7260b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28248e",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 242.264,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.16709,
    "h": 275
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28248E

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

Preview Lab → · Contrast checker → · Palette generator →

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