#28306C#28306C

#28306C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.104 H 273.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#28306C
RGBrgb(40, 48, 108)
HSLhsl(233, 46%, 29%)
HSVhsv(233, 63%, 42%)
CMYKcmyk(63%, 55.6%, 0%, 57.6%)
CIE-LABlab(22.47, 16.89, -36.14)
CIE-LCHlch(22.47, 39.90, 295.05°)
OKLaboklab(33.82% 0.0069 -0.1036)
OKLCHoklch(33.82% 0.104 273.8)
XYZxyz(4.6379, 3.6474, 14.6441)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28306C #6C6428
analogous
#28526C #28306C #42286C
triadic
#28306C #6C2830 #306C28
tetradic
#28306C #6C2852 #6C6428 #286C42
square
#28306C #6C2852 #6C6428 #286C42
split-complementary
#28306C #6C4228 #526C28
monochromatic
#080A16 #171C3F #28306C #394499 #505DBE

Accessibility & contrast

On white

12.14
#28306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28306C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28306C#FFFFFF#000000##FFFFFF
##28306C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28306c;
/* rgb */ color: rgb(40, 48, 108);
/* oklch */ color: oklch(33.8% 0.104 273.8);
Tailwind
colors: {
  custom: {
    50: '#696897',
    500: '#28306c',
    950: '#000000',
  },
}
SCSS
$custom: #28306c;
$custom-light: #696897;
$custom-dark: #000000;
JSON
{
  "hex": "#28306c",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 232.941,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33815,
    "c": 0.10379,
    "h": 273.8
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#28306C
secondary
#9E9551
accent
#C652D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28306C

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

Preview Lab → · Contrast checker → · Palette generator →

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