#28316D#28316D

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

Color values

HEX#28316D
RGBrgb(40, 49, 109)
HSLhsl(232, 46%, 29%)
HSVhsv(232, 63%, 43%)
CMYKcmyk(63.3%, 55%, 0%, 57.3%)
CIE-LABlab(22.83, 16.57, -36.20)
CIE-LCHlch(22.83, 39.81, 294.59°)
OKLaboklab(34.11% 0.0058 -0.1037)
OKLCHoklch(34.11% 0.104 273.2)
XYZxyz(4.7328, 3.7515, 14.9397)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28316D #6D6428
analogous
#28546D #28316D #42286D
triadic
#28316D #6D2831 #316D28
tetradic
#28316D #6D2854 #6D6428 #286D42
square
#28316D #6D2854 #6D6428 #286D42
split-complementary
#28316D #6D4228 #546D28
monochromatic
#080A16 #181D40 #28316D #38459A #505FBF

Accessibility & contrast

On white

12.00
#28316D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28316D
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28316D#FFFFFF#000000##FFFFFF
##28316D1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A6F
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28316d;
/* rgb */ color: rgb(40, 49, 109);
/* oklch */ color: oklch(34.1% 0.104 273.2);
Tailwind
colors: {
  custom: {
    50: '#696897',
    500: '#28316d',
    950: '#000000',
  },
}
SCSS
$custom: #28316d;
$custom-light: #696897;
$custom-dark: #000000;
JSON
{
  "hex": "#28316d",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 232.174,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.10388,
    "h": 273.2
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#28316D
secondary
#9F9551
accent
#C552D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28316D

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

Preview Lab → · Contrast checker → · Palette generator →

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