#305172#305172

#305172 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.5% C 0.068 H 249.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#305172
RGBrgb(48, 81, 114)
HSLhsl(210, 41%, 32%)
HSVhsv(210, 58%, 45%)
CMYKcmyk(57.9%, 28.9%, 0%, 55.3%)
CIE-LABlab(33.41, -1.43, -22.57)
CIE-LCHlch(33.41, 22.61, 266.37°)
OKLaboklab(42.5% -0.0235 -0.0633)
OKLCHoklch(42.5% 0.068 249.7)
XYZxyz(7.1975, 7.7275, 17.0286)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305172 #725130
analogous
#307272 #305172 #303072
triadic
#305172 #723051 #517230
tetradic
#305172 #723072 #725130 #307230
square
#305172 #723072 #725130 #307230
split-complementary
#305172 #723030 #727230
monochromatic
#0C141C #1E3247 #305172 #42709D #608EBC

Accessibility & contrast

On white

8.25
#305172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305172
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305172#FFFFFF#000000##FFFFFF
##3051721.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#02595C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #305172;
/* rgb */ color: rgb(48, 81, 114);
/* oklch */ color: oklch(42.5% 0.068 249.7);
Tailwind
colors: {
  custom: {
    50: '#6e819a',
    500: '#305172',
    950: '#000000',
  },
}
SCSS
$custom: #305172;
$custom-light: #6e819a;
$custom-dark: #000000;
JSON
{
  "hex": "#305172",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 210,
    "s": 40.741,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.06755,
    "h": 249.7
  },
  "luminance": 0.07728
}

Semantic roles & 50–950 ramp

primary
#305172
secondary
#A37F5B
accent
#9457D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #305172

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

Preview Lab → · Contrast checker → · Palette generator →

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