#305899#305899

#305899 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.5% C 0.115 H 259.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#305899
RGBrgb(48, 88, 153)
HSLhsl(217, 52%, 39%)
HSVhsv(217, 69%, 60%)
CMYKcmyk(68.6%, 42.5%, 0%, 40%)
CIE-LABlab(37.67, 8.22, -39.72)
CIE-LCHlch(37.67, 40.56, 281.70°)
OKLaboklab(46.52% -0.0207 -0.1133)
OKLCHoklch(46.52% 0.115 259.6)
XYZxyz(10.4564, 9.9067, 31.4919)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305899 #997130
analogous
#308D99 #305899 #3D3099
triadic
#305899 #993058 #589930
tetradic
#305899 #99308D #997130 #30993D
square
#305899 #99308D #997130 #30993D
split-complementary
#305899 #993D30 #8D9930
monochromatic
#13223C #213D6A #305899 #4274C4 #7196D2

Accessibility & contrast

On white

7.04
#305899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#305899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305899
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305899#FFFFFF#000000##FFFFFF
##3058991.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9C
Deuteranopia (green-blind)
#295498
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #305899;
/* rgb */ color: rgb(48, 88, 153);
/* oklch */ color: oklch(46.5% 0.115 259.6);
Tailwind
colors: {
  custom: {
    50: '#7486b7',
    500: '#305899',
    950: '#000000',
  },
}
SCSS
$custom: #305899;
$custom-light: #7486b7;
$custom-dark: #000000;
JSON
{
  "hex": "#305899",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 217.143,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46518,
    "c": 0.1152,
    "h": 259.6
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#305899
secondary
#BA9C6B
accent
#A54CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #305899

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

Preview Lab → · Contrast checker → · Palette generator →

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