#28247B#28247B

#28247B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.142 H 277.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#28247B
RGBrgb(40, 36, 123)
HSLhsl(243, 55%, 31%)
HSVhsv(243, 71%, 48%)
CMYKcmyk(67.5%, 70.7%, 0%, 51.8%)
CIE-LABlab(20.61, 30.56, -48.79)
CIE-LCHlch(20.61, 57.57, 302.06°)
OKLaboklab(32.84% 0.0178 -0.1408)
OKLCHoklch(32.84% 0.142 277.2)
XYZxyz(5.0799, 3.1425, 19.0739)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28247B #777B24
analogous
#244B7B #28247B #53247B
triadic
#28247B #7B2824 #247B28
tetradic
#28247B #7B244B #777B24 #247B53
square
#28247B #7B244B #777B24 #247B53
split-complementary
#28247B #7B5324 #4B7B24
monochromatic
#09081C #19164C #28247B #3732AA #544ECB

Accessibility & contrast

On white

12.89
#28247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#28247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28247B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28247B#FFFFFF#000000##FFFFFF
##28247B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28247b;
/* rgb */ color: rgb(40, 36, 123);
/* oklch */ color: oklch(32.8% 0.142 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fa2',
    500: '#28247b',
    950: '#000000',
  },
}
SCSS
$custom: #28247b;
$custom-light: #6e5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#28247b",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 242.759,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.14192,
    "h": 277.2
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#28247B
secondary
#A9AD4D
accent
#DE4AD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28247B

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

Preview Lab → · Contrast checker → · Palette generator →

#28247B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva