#305994#305994

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

Color values

HEX#305994
RGBrgb(48, 89, 148)
HSLhsl(215, 51%, 38%)
HSVhsv(215, 68%, 58%)
CMYKcmyk(67.6%, 39.9%, 0%, 42%)
CIE-LABlab(37.68, 5.71, -36.70)
CIE-LCHlch(37.68, 37.14, 278.85°)
OKLaboklab(46.43% -0.0229 -0.1044)
OKLCHoklch(46.43% 0.107 257.6)
XYZxyz(10.1347, 9.9103, 29.3900)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305994 #946B30
analogous
#308B94 #305994 #393094
triadic
#305994 #943059 #599430
tetradic
#305994 #94308B #946B30 #309439
square
#305994 #94308B #946B30 #309439
split-complementary
#305994 #943930 #8B9430
monochromatic
#122138 #213D66 #305994 #4075C1 #6E96D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305994#FFFFFF#000000##FFFFFF
##3059941.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)
#3F5E96
Deuteranopia (green-blind)
#305493
Tritanopia (blue-blind)
#00676F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #305994;
/* rgb */ color: rgb(48, 89, 148);
/* oklch */ color: oklch(46.4% 0.107 257.6);
Tailwind
colors: {
  custom: {
    50: '#7387b4',
    500: '#305994',
    950: '#000000',
  },
}
SCSS
$custom: #305994;
$custom-light: #7387b4;
$custom-dark: #000000;
JSON
{
  "hex": "#305994",
  "rgb": {
    "r": 48,
    "g": 89,
    "b": 148
  },
  "hsl": {
    "h": 215.4,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46428,
    "c": 0.10692,
    "h": 257.6
  },
  "luminance": 0.09911
}

Semantic roles & 50–950 ramp

primary
#305994
secondary
#B89768
accent
#A14DDA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #305994

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

Preview Lab → · Contrast checker → · Palette generator →

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