#28316E#28316E

#28316E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.105 H 273.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#28316E
RGBrgb(40, 49, 110)
HSLhsl(232, 47%, 29%)
HSVhsv(232, 64%, 43%)
CMYKcmyk(63.6%, 55.5%, 0%, 56.9%)
CIE-LABlab(22.91, 16.95, -36.73)
CIE-LCHlch(22.91, 40.45, 294.77°)
OKLaboklab(34.19% 0.0059 -0.1053)
OKLCHoklch(34.19% 0.105 273.2)
XYZxyz(4.7869, 3.7731, 15.2249)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28316E #6E6528
analogous
#28546E #28316E #42286E
triadic
#28316E #6E2831 #316E28
tetradic
#28316E #6E2854 #6E6528 #286E42
square
#28316E #6E2854 #6E6528 #286E42
split-complementary
#28316E #6E4228 #546E28
monochromatic
#080A16 #181D41 #28316E #38459B #515FC0

Accessibility & contrast

On white

11.97
#28316E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#28316E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28316E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28316E#FFFFFF#000000##FFFFFF
##28316E1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3A70
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28316e;
/* rgb */ color: rgb(40, 49, 110);
/* oklch */ color: oklch(34.2% 0.105 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a6898',
    500: '#28316e',
    950: '#000000',
  },
}
SCSS
$custom: #28316e;
$custom-light: #6a6898;
$custom-dark: #000000;
JSON
{
  "hex": "#28316e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 232.286,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.10542,
    "h": 273.2
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#28316E
secondary
#A09651
accent
#C551D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #28316E

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

Preview Lab → · Contrast checker → · Palette generator →

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