#305282#305282

#305282 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.7% C 0.089 H 257.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#305282
RGBrgb(48, 82, 130)
HSLhsl(215, 46%, 35%)
HSVhsv(215, 63%, 51%)
CMYKcmyk(63.1%, 36.9%, 0%, 49%)
CIE-LABlab(34.55, 3.63, -30.70)
CIE-LCHlch(34.55, 30.91, 276.75°)
OKLaboklab(43.66% -0.0198 -0.087)
OKLCHoklch(43.66% 0.089 257.2)
XYZxyz(8.2641, 8.2739, 22.2763)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305282 #826030
analogous
#307B82 #305282 #373082
triadic
#305282 #823052 #528230
tetradic
#305282 #82307B #826030 #308237
square
#305282 #82307B #826030 #308237
split-complementary
#305282 #823730 #7B8230
monochromatic
#0F1A29 #1F3655 #305282 #416EAF #668EC6

Accessibility & contrast

On white

7.91
#305282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#305282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305282
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305282#FFFFFF#000000##FFFFFF
##3052821.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5584
Deuteranopia (green-blind)
#334E81
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305282;
/* rgb */ color: rgb(48, 82, 130);
/* oklch */ color: oklch(43.7% 0.089 257.2);
Tailwind
colors: {
  custom: {
    50: '#7082a6',
    500: '#305282',
    950: '#000000',
  },
}
SCSS
$custom: #305282;
$custom-light: #7082a6;
$custom-dark: #000000;
JSON
{
  "hex": "#305282",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 130
  },
  "hsl": {
    "h": 215.122,
    "s": 46.067,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4366,
    "c": 0.08919,
    "h": 257.2
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#305282
secondary
#AE8E60
accent
#9F52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #305282

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

Preview Lab → · Contrast checker → · Palette generator →

#305282 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva