#305887#305887

#305887 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.4% C 0.090 H 253.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#305887
RGBrgb(48, 88, 135)
HSLhsl(212, 48%, 36%)
HSVhsv(212, 64%, 53%)
CMYKcmyk(64.4%, 34.8%, 0%, 47.1%)
CIE-LABlab(36.66, 1.58, -30.43)
CIE-LCHlch(36.66, 30.47, 272.98°)
OKLaboklab(45.4% -0.0252 -0.0861)
OKLCHoklch(45.4% 0.09 253.7)
XYZxyz(9.0802, 9.3562, 24.2444)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305887 #875F30
analogous
#308387 #305887 #333087
triadic
#305887 #873058 #588730
tetradic
#305887 #873083 #875F30 #308733
square
#305887 #873083 #875F30 #308733
split-complementary
#305887 #873330 #838730
monochromatic
#101D2D #203B5A #305887 #4075B4 #6895C9

Accessibility & contrast

On white

7.31
#305887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#305887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305887
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305887#FFFFFF#000000##FFFFFF
##3058871.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445B89
Deuteranopia (green-blind)
#385286
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #305887;
/* rgb */ color: rgb(48, 88, 135);
/* oklch */ color: oklch(45.4% 0.090 253.7);
Tailwind
colors: {
  custom: {
    50: '#7186aa',
    500: '#305887',
    950: '#000000',
  },
}
SCSS
$custom: #305887;
$custom-light: #7186aa;
$custom-dark: #000000;
JSON
{
  "hex": "#305887",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 135
  },
  "hsl": {
    "h": 212.414,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45399,
    "c": 0.08973,
    "h": 253.7
  },
  "luminance": 0.09357
}

Semantic roles & 50–950 ramp

primary
#305887
secondary
#B18D62
accent
#9951D7
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #305887

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

Preview Lab → · Contrast checker → · Palette generator →

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