#305299#305299

#305299 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.123 H 263.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#305299
RGBrgb(48, 82, 153)
HSLhsl(221, 52%, 39%)
HSVhsv(221, 69%, 60%)
CMYKcmyk(68.6%, 46.4%, 0%, 40%)
CIE-LABlab(35.91, 12.16, -42.54)
CIE-LCHlch(35.91, 44.25, 285.96°)
OKLaboklab(45.16% -0.0147 -0.1217)
OKLCHoklch(45.16% 0.123 263.1)
XYZxyz(9.9840, 8.9619, 31.3345)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305299 #997730
analogous
#308799 #305299 #423099
triadic
#305299 #993052 #529930
tetradic
#305299 #993087 #997730 #309942
square
#305299 #993087 #997730 #309942
split-complementary
#305299 #994230 #879930
monochromatic
#13203C #21396A #305299 #426CC4 #7191D2

Accessibility & contrast

On white

7.52
#305299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#305299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305299
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305299#FFFFFF#000000##FFFFFF
##3052991.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9C
Deuteranopia (green-blind)
#1B5098
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #305299;
/* rgb */ color: rgb(48, 82, 153);
/* oklch */ color: oklch(45.2% 0.123 263.1);
Tailwind
colors: {
  custom: {
    50: '#7582b7',
    500: '#305299',
    950: '#000000',
  },
}
SCSS
$custom: #305299;
$custom-light: #7582b7;
$custom-dark: #000000;
JSON
{
  "hex": "#305299",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 220.571,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45158,
    "c": 0.12258,
    "h": 263.1
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#305299
secondary
#BAA06B
accent
#AD4CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #305299

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

Preview Lab → · Contrast checker → · Palette generator →

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