#28215E#28215E

#28215E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.6% C 0.104 H 283.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#28215E
RGBrgb(40, 33, 94)
HSLhsl(247, 48%, 25%)
HSVhsv(247, 65%, 37%)
CMYKcmyk(57.4%, 64.9%, 0%, 63.1%)
CIE-LABlab(17.21, 22.22, -35.49)
CIE-LCHlch(17.21, 41.87, 302.05°)
OKLaboklab(29.55% 0.0238 -0.1018)
OKLCHoklch(29.55% 0.105 283.1)
XYZxyz(3.4387, 2.3468, 10.8593)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28215E #575E21
analogous
#21395E #28215E #46215E
triadic
#28215E #5E2821 #215E28
tetradic
#28215E #5E2139 #575E21 #215E46
square
#28215E #5E2139 #575E21 #215E46
split-complementary
#28215E #5E4621 #395E21
monochromatic
#0A0817 #151131 #28215E #3B318B #4F41B9

Accessibility & contrast

On white

14.29
#28215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28215E
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28215E#FFFFFF#000000##FFFFFF
##28215E1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#11303C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28215e;
/* rgb */ color: rgb(40, 33, 94);
/* oklch */ color: oklch(29.6% 0.104 283.1);
Tailwind
colors: {
  custom: {
    50: '#685c8c',
    500: '#28215e',
    950: '#000000',
  },
}
SCSS
$custom: #28215e;
$custom-light: #685c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#28215e",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 246.885,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29553,
    "c": 0.1045,
    "h": 283.1
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#28215E
secondary
#8A9249
accent
#D850C8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #28215E

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

Preview Lab → · Contrast checker → · Palette generator →

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