#305398#305398

#305398 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.3% C 0.120 H 262.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#305398
RGBrgb(48, 83, 152)
HSLhsl(220, 52%, 39%)
HSVhsv(220, 68%, 60%)
CMYKcmyk(68.4%, 45.4%, 0%, 40.4%)
CIE-LABlab(36.14, 11.13, -41.57)
CIE-LCHlch(36.14, 43.04, 284.98°)
OKLaboklab(45.31% -0.0158 -0.1188)
OKLCHoklch(45.31% 0.12 262.4)
XYZxyz(9.9777, 9.0809, 30.9266)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305398 #987530
analogous
#308798 #305398 #413098
triadic
#305398 #983053 #539830
tetradic
#305398 #983087 #987530 #309841
square
#305398 #983087 #987530 #309841
split-complementary
#305398 #984130 #879830
monochromatic
#13203B #213A69 #305398 #426DC3 #7091D2

Accessibility & contrast

On white

7.46
#305398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#305398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305398
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305398#FFFFFF#000000##FFFFFF
##3053981.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#1F5197
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #305398;
/* rgb */ color: rgb(48, 83, 152);
/* oklch */ color: oklch(45.3% 0.120 262.4);
Tailwind
colors: {
  custom: {
    50: '#7482b7',
    500: '#305398',
    950: '#000000',
  },
}
SCSS
$custom: #305398;
$custom-light: #7482b7;
$custom-dark: #000000;
JSON
{
  "hex": "#305398",
  "rgb": {
    "r": 48,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 219.808,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45314,
    "c": 0.11988,
    "h": 262.4
  },
  "luminance": 0.09082
}

Semantic roles & 50–950 ramp

primary
#305398
secondary
#BA9F6A
accent
#AB4CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #305398

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

Preview Lab → · Contrast checker → · Palette generator →

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