#305271#305271

#305271 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.7% C 0.065 H 247.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#305271
RGBrgb(48, 82, 113)
HSLhsl(209, 40%, 32%)
HSVhsv(209, 58%, 44%)
CMYKcmyk(57.5%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.68, -2.42, -21.52)
CIE-LCHlch(33.68, 21.66, 263.60°)
OKLaboklab(42.69% -0.0251 -0.0603)
OKLCHoklch(42.69% 0.065 247.4)
XYZxyz(7.2158, 7.8546, 16.7554)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305271 #714F30
analogous
#307170 #305271 #303271
triadic
#305271 #713052 #527130
tetradic
#305271 #703071 #714F30 #327130
square
#305271 #703071 #714F30 #327130
split-complementary
#305271 #713032 #717030
monochromatic
#0C141B #1E3346 #305271 #42719C #6090BB

Accessibility & contrast

On white

8.17
#305271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#305271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305271
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305271#FFFFFF#000000##FFFFFF
##3052711.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455372
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#04595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #305271;
/* rgb */ color: rgb(48, 82, 113);
/* oklch */ color: oklch(42.7% 0.065 247.4);
Tailwind
colors: {
  custom: {
    50: '#6e829a',
    500: '#305271',
    950: '#000000',
  },
}
SCSS
$custom: #305271;
$custom-light: #6e829a;
$custom-dark: #000000;
JSON
{
  "hex": "#305271",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 208.615,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42694,
    "c": 0.06534,
    "h": 247.4
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#305271
secondary
#A27D5B
accent
#9158D0
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #305271

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

Preview Lab → · Contrast checker → · Palette generator →

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