#305698#305698

#305698 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.116 H 260.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#305698
RGBrgb(48, 86, 152)
HSLhsl(218, 52%, 39%)
HSVhsv(218, 68%, 60%)
CMYKcmyk(68.4%, 43.4%, 0%, 40.4%)
CIE-LABlab(37.02, 9.16, -40.16)
CIE-LCHlch(37.02, 41.19, 282.84°)
OKLaboklab(45.99% -0.0189 -0.1146)
OKLCHoklch(45.99% 0.116 260.6)
XYZxyz(10.2122, 9.5499, 31.0048)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305698 #987230
analogous
#308A98 #305698 #3E3098
triadic
#305698 #983056 #569830
tetradic
#305698 #98308A #987230 #30983E
square
#305698 #98308A #987230 #30983E
split-complementary
#305698 #983E30 #8A9830
monochromatic
#13213B #213C69 #305698 #4271C3 #7094D2

Accessibility & contrast

On white

7.22
#305698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#305698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305698
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305698#FFFFFF#000000##FFFFFF
##3056981.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #305698;
/* rgb */ color: rgb(48, 86, 152);
/* oklch */ color: oklch(46.0% 0.116 260.6);
Tailwind
colors: {
  custom: {
    50: '#7485b7',
    500: '#305698',
    950: '#000000',
  },
}
SCSS
$custom: #305698;
$custom-light: #7485b7;
$custom-dark: #000000;
JSON
{
  "hex": "#305698",
  "rgb": {
    "r": 48,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 218.077,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45994,
    "c": 0.11618,
    "h": 260.6
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#305698
secondary
#BA9D6A
accent
#A74CDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #305698

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

Preview Lab → · Contrast checker → · Palette generator →

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