#28215D#28215D

#28215D is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.5% C 0.103 H 283.4°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#28215D
RGBrgb(40, 33, 93)
HSLhsl(247, 48%, 25%)
HSVhsv(247, 65%, 36%)
CMYKcmyk(57%, 64.5%, 0%, 63.5%)
CIE-LABlab(17.13, 21.86, -34.96)
CIE-LCHlch(17.13, 41.23, 302.02°)
OKLaboklab(29.46% 0.0238 -0.1002)
OKLCHoklch(29.46% 0.103 283.4)
XYZxyz(3.3941, 2.3290, 10.6245)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28215D #565D21
analogous
#21385D #28215D #46215D
triadic
#28215D #5D2821 #215D28
tetradic
#28215D #5D2138 #565D21 #215D46
square
#28215D #5D2138 #565D21 #215D46
split-complementary
#28215D #5D4621 #385D21
monochromatic
#0A0817 #151130 #28215D #3B318A #4F41B7

Accessibility & contrast

On white

14.33
#28215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28215D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28215D#FFFFFF#000000##FFFFFF
##28215D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#122F3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28215d;
/* rgb */ color: rgb(40, 33, 93);
/* oklch */ color: oklch(29.5% 0.103 283.4);
Tailwind
colors: {
  custom: {
    50: '#685c8b',
    500: '#28215d',
    950: '#000000',
  },
}
SCSS
$custom: #28215d;
$custom-light: #685c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#28215d",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 247,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29464,
    "c": 0.103,
    "h": 283.4
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#28215D
secondary
#899149
accent
#D751C8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #28215D

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

Preview Lab → · Contrast checker → · Palette generator →

#28215D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva