#305173#305173

#305173 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.6% C 0.069 H 250.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#305173
RGBrgb(48, 81, 115)
HSLhsl(210, 41%, 32%)
HSVhsv(210, 58%, 45%)
CMYKcmyk(58.3%, 29.6%, 0%, 54.9%)
CIE-LABlab(33.46, -1.08, -23.12)
CIE-LCHlch(33.46, 23.14, 267.32°)
OKLaboklab(42.55% -0.0231 -0.0649)
OKLCHoklch(42.55% 0.069 250.4)
XYZxyz(7.2548, 7.7504, 17.3300)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305173 #735230
analogous
#307373 #305173 #313073
triadic
#305173 #733051 #517330
tetradic
#305173 #733073 #735230 #307331
square
#305173 #733073 #735230 #307331
split-complementary
#305173 #733130 #737330
monochromatic
#0C141D #1E3348 #305173 #426F9E #618EBD

Accessibility & contrast

On white

8.23
#305173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#305173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305173
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305173#FFFFFF#000000##FFFFFF
##3051731.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435275
Deuteranopia (green-blind)
#3A4C72
Tritanopia (blue-blind)
#00595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #305173;
/* rgb */ color: rgb(48, 81, 115);
/* oklch */ color: oklch(42.6% 0.069 250.4);
Tailwind
colors: {
  custom: {
    50: '#6e819b',
    500: '#305173',
    950: '#000000',
  },
}
SCSS
$custom: #305173;
$custom-light: #6e819b;
$custom-dark: #000000;
JSON
{
  "hex": "#305173",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 115
  },
  "hsl": {
    "h": 210.448,
    "s": 41.104,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42553,
    "c": 0.06893,
    "h": 250.4
  },
  "luminance": 0.07751
}

Semantic roles & 50–950 ramp

primary
#305173
secondary
#A4805B
accent
#9557D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #305173

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

Preview Lab → · Contrast checker → · Palette generator →

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