#28306F#28306F

#28306F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.108 H 273.7°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#28306F
RGBrgb(40, 48, 111)
HSLhsl(233, 47%, 30%)
HSVhsv(233, 64%, 44%)
CMYKcmyk(64%, 56.8%, 0%, 56.5%)
CIE-LABlab(22.70, 18.02, -37.71)
CIE-LCHlch(22.70, 41.80, 295.55°)
OKLaboklab(34.06% 0.0071 -0.1082)
OKLCHoklch(34.06% 0.108 273.7)
XYZxyz(4.8003, 3.7123, 15.4994)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28306F #6F6728
analogous
#28546F #28306F #43286F
triadic
#28306F #6F2830 #306F28
tetradic
#28306F #6F2854 #6F6728 #286F43
square
#28306F #6F2854 #6F6728 #286F43
split-complementary
#28306F #6F4328 #546F28
monochromatic
#080A16 #181D42 #28306F #38439C #515EC0

Accessibility & contrast

On white

12.05
#28306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#28306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28306F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28306F#FFFFFF#000000##FFFFFF
##28306F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063971
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28306f;
/* rgb */ color: rgb(40, 48, 111);
/* oklch */ color: oklch(34.1% 0.108 273.7);
Tailwind
colors: {
  custom: {
    50: '#6a6899',
    500: '#28306f',
    950: '#000000',
  },
}
SCSS
$custom: #28306f;
$custom-light: #6a6899;
$custom-dark: #000000;
JSON
{
  "hex": "#28306f",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 233.239,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34058,
    "c": 0.10839,
    "h": 273.7
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#28306F
secondary
#A19851
accent
#C851D7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #28306F

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

Preview Lab → · Contrast checker → · Palette generator →

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