#305997#305997

#305997 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.6% C 0.111 H 258.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#305997
RGBrgb(48, 89, 151)
HSLhsl(216, 52%, 39%)
HSVhsv(216, 68%, 59%)
CMYKcmyk(68.2%, 41.1%, 0%, 40.8%)
CIE-LABlab(37.85, 6.83, -38.23)
CIE-LCHlch(37.85, 38.84, 280.13°)
OKLaboklab(46.62% -0.0222 -0.1089)
OKLCHoklch(46.62% 0.111 258.5)
XYZxyz(10.3752, 10.0065, 30.6568)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305997 #976E30
analogous
#308D97 #305997 #3B3097
triadic
#305997 #973059 #599730
tetradic
#305997 #97308D #976E30 #30973B
square
#305997 #97308D #976E30 #30973B
split-complementary
#305997 #973B30 #8D9730
monochromatic
#12223A #213E69 #305997 #4175C3 #7097D2

Accessibility & contrast

On white

7.00
#305997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#305997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305997
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305997#FFFFFF#000000##FFFFFF
##3059971.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E99
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #305997;
/* rgb */ color: rgb(48, 89, 151);
/* oklch */ color: oklch(46.6% 0.111 258.5);
Tailwind
colors: {
  custom: {
    50: '#7487b6',
    500: '#305997',
    950: '#000000',
  },
}
SCSS
$custom: #305997;
$custom-light: #7487b6;
$custom-dark: #000000;
JSON
{
  "hex": "#305997",
  "rgb": {
    "r": 48,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 216.117,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46619,
    "c": 0.11117,
    "h": 258.5
  },
  "luminance": 0.10008
}

Semantic roles & 50–950 ramp

primary
#305997
secondary
#B9996A
accent
#A24DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #305997

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

Preview Lab → · Contrast checker → · Palette generator →

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