#305F7F#305F7F

#305F7F is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.7% C 0.073 H 240.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#305F7F
RGBrgb(48, 95, 127)
HSLhsl(204, 45%, 34%)
HSVhsv(204, 62%, 50%)
CMYKcmyk(62.2%, 25.2%, 0%, 50.2%)
CIE-LABlab(38.45, -5.64, -22.74)
CIE-LCHlch(38.45, 23.43, 256.08°)
OKLaboklab(46.68% -0.036 -0.0638)
OKLCHoklch(46.68% 0.073 240.6)
XYZxyz(9.1405, 10.3442, 21.5895)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305F7F #7F5030
analogous
#307F78 #305F7F #30387F
triadic
#305F7F #7F305F #5F7F30
tetradic
#305F7F #78307F #7F5030 #387F30
square
#305F7F #78307F #7F5030 #387F30
split-complementary
#305F7F #7F3038 #7F7830
monochromatic
#0E1D26 #1F3E53 #305F7F #4180AB #659EC5

Accessibility & contrast

On white

6.84
#305F7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#305F7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305F7F
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305F7F#FFFFFF#000000##FFFFFF
##305F7F1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515F80
Deuteranopia (green-blind)
#46577E
Tritanopia (blue-blind)
#00676A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #305f7f;
/* rgb */ color: rgb(48, 95, 127);
/* oklch */ color: oklch(46.7% 0.073 240.6);
Tailwind
colors: {
  custom: {
    50: '#708ca4',
    500: '#305f7f',
    950: '#000000',
  },
}
SCSS
$custom: #305f7f;
$custom-light: #708ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#305f7f",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 127
  },
  "hsl": {
    "h": 204.304,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.07322,
    "h": 240.6
  },
  "luminance": 0.10345
}

Semantic roles & 50–950 ramp

primary
#305F7F
secondary
#AC7E5F
accent
#8853D5
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #305F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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