#28306D#28306D

#28306D is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.105 H 273.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#28306D
RGBrgb(40, 48, 109)
HSLhsl(233, 46%, 29%)
HSVhsv(233, 63%, 43%)
CMYKcmyk(63.3%, 56%, 0%, 57.3%)
CIE-LABlab(22.54, 17.27, -36.67)
CIE-LCHlch(22.54, 40.53, 295.22°)
OKLaboklab(33.89% 0.0069 -0.1051)
OKLCHoklch(33.89% 0.105 273.8)
XYZxyz(4.6914, 3.6688, 14.9260)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28306D #6D6528
analogous
#28536D #28306D #43286D
triadic
#28306D #6D2830 #306D28
tetradic
#28306D #6D2853 #6D6528 #286D43
square
#28306D #6D2853 #6D6528 #286D43
split-complementary
#28306D #6D4328 #536D28
monochromatic
#080A16 #181C40 #28306D #38449A #505DBF

Accessibility & contrast

On white

12.11
#28306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#28306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28306D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28306D#FFFFFF#000000##FFFFFF
##28306D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A396F
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28306d;
/* rgb */ color: rgb(40, 48, 109);
/* oklch */ color: oklch(33.9% 0.105 273.8);
Tailwind
colors: {
  custom: {
    50: '#696897',
    500: '#28306d',
    950: '#000000',
  },
}
SCSS
$custom: #28306d;
$custom-light: #696897;
$custom-dark: #000000;
JSON
{
  "hex": "#28306d",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 233.043,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33895,
    "c": 0.10533,
    "h": 273.8
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#28306D
secondary
#9F9651
accent
#C752D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28306D

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

Preview Lab → · Contrast checker → · Palette generator →

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