#28276F#28276F

#28276F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.121 H 277.8°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#28276F
RGBrgb(40, 39, 111)
HSLhsl(241, 48%, 29%)
HSVhsv(241, 65%, 44%)
CMYKcmyk(64%, 64.9%, 0%, 56.5%)
CIE-LABlab(20.24, 24.25, -41.69)
CIE-LCHlch(20.24, 48.23, 300.19°)
OKLaboklab(32.24% 0.0164 -0.12)
OKLCHoklch(32.24% 0.121 277.8)
XYZxyz(4.4689, 3.0495, 15.3890)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28276F #6E6F27
analogous
#274A6F #28276F #4C276F
triadic
#28276F #6F2827 #276F28
tetradic
#28276F #6F274A #6E6F27 #276F4C
square
#28276F #6F274A #6E6F27 #276F4C
split-complementary
#28276F #6F4C27 #4A6F27
monochromatic
#080817 #181742 #28276F #38379C #514FC1

Accessibility & contrast

On white

13.04
#28276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28276F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28276F#FFFFFF#000000##FFFFFF
##28276F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28276f;
/* rgb */ color: rgb(40, 39, 111);
/* oklch */ color: oklch(32.2% 0.121 277.8);
Tailwind
colors: {
  custom: {
    50: '#6b6199',
    500: '#28276f',
    950: '#000000',
  },
}
SCSS
$custom: #28276f;
$custom-light: #6b6199;
$custom-dark: #000000;
JSON
{
  "hex": "#28276f",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 240.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32235,
    "c": 0.12108,
    "h": 277.8
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#28276F
secondary
#A0A250
accent
#D850D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #28276F

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

Preview Lab → · Contrast checker → · Palette generator →

#28276F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva