#305288#305288

#305288 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.098 H 259.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#305288
RGBrgb(48, 82, 136)
HSLhsl(217, 48%, 36%)
HSVhsv(217, 65%, 53%)
CMYKcmyk(64.7%, 39.7%, 0%, 46.7%)
CIE-LABlab(34.88, 5.83, -33.85)
CIE-LCHlch(34.88, 34.35, 279.77°)
OKLaboklab(44.03% -0.0182 -0.0962)
OKLCHoklch(44.03% 0.098 259.3)
XYZxyz(8.6786, 8.4397, 24.4595)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305288 #886630
analogous
#307E88 #305288 #3A3088
triadic
#305288 #883052 #528830
tetradic
#305288 #88307E #886630 #30883A
square
#305288 #88307E #886630 #30883A
split-complementary
#305288 #883A30 #7E8830
monochromatic
#101B2E #20375B #305288 #406DB5 #698ECA

Accessibility & contrast

On white

7.81
#305288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#305288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305288
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305288#FFFFFF#000000##FFFFFF
##3052881.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A568A
Deuteranopia (green-blind)
#2E4E87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305288;
/* rgb */ color: rgb(48, 82, 136);
/* oklch */ color: oklch(44.0% 0.098 259.3);
Tailwind
colors: {
  custom: {
    50: '#7182ab',
    500: '#305288',
    950: '#000000',
  },
}
SCSS
$custom: #305288;
$custom-light: #7182ab;
$custom-dark: #000000;
JSON
{
  "hex": "#305288",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 136
  },
  "hsl": {
    "h": 216.818,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44031,
    "c": 0.0979,
    "h": 259.3
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#305288
secondary
#B19363
accent
#A350D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #305288

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

Preview Lab → · Contrast checker → · Palette generator →

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