#305A8B#305A8B

#305A8B is a mid, moderate cyan. Relative luminance 0.098; OKLCH L 46.1% C 0.093 H 253.6°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#305A8B
RGBrgb(48, 90, 139)
HSLhsl(212, 49%, 37%)
HSVhsv(212, 65%, 55%)
CMYKcmyk(65.5%, 35.3%, 0%, 45.5%)
CIE-LABlab(37.49, 1.76, -31.56)
CIE-LCHlch(37.49, 31.61, 273.20°)
OKLaboklab(46.12% -0.0263 -0.0894)
OKLCHoklch(46.12% 0.093 253.6)
XYZxyz(9.5336, 9.8039, 25.8110)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A8B #8B6130
analogous
#30888B #305A8B #34308B
triadic
#305A8B #8B305A #5A8B30
tetradic
#305A8B #8B3088 #8B6130 #308B34
square
#305A8B #8B3088 #8B6130 #308B34
split-complementary
#305A8B #8B3430 #888B30
monochromatic
#111F30 #203D5E #305A8B #4077B8 #6A97CC

Accessibility & contrast

On white

7.09
#305A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#305A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305A8B
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A8B#FFFFFF#000000##FFFFFF
##305A8B1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455D8D
Deuteranopia (green-blind)
#38548A
Tritanopia (blue-blind)
#00656C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #305a8b;
/* rgb */ color: rgb(48, 90, 139);
/* oklch */ color: oklch(46.1% 0.093 253.6);
Tailwind
colors: {
  custom: {
    50: '#7288ad',
    500: '#305a8b',
    950: '#000000',
  },
}
SCSS
$custom: #305a8b;
$custom-light: #7288ad;
$custom-dark: #000000;
JSON
{
  "hex": "#305a8b",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 139
  },
  "hsl": {
    "h": 212.308,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46116,
    "c": 0.09319,
    "h": 253.6
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#305A8B
secondary
#B38E64
accent
#9950D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #305A8B

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

Preview Lab → · Contrast checker → · Palette generator →

#305A8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva