#304D71#304D71

#304D71 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.5% C 0.070 H 254.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#304D71
RGBrgb(48, 77, 113)
HSLhsl(213, 40%, 32%)
HSVhsv(213, 58%, 44%)
CMYKcmyk(57.5%, 31.9%, 0%, 55.7%)
CIE-LABlab(32.10, 0.79, -23.99)
CIE-LCHlch(32.10, 24.01, 271.88°)
OKLaboklab(41.45% -0.0187 -0.0675)
OKLCHoklch(41.45% 0.07 254.5)
XYZxyz(6.8524, 7.1278, 16.6343)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D71 #715430
analogous
#306E71 #304D71 #343071
triadic
#304D71 #71304D #4D7130
tetradic
#304D71 #71306E #715430 #307134
square
#304D71 #71306E #715430 #307134
split-complementary
#304D71 #713430 #6E7130
monochromatic
#0C121B #1E3046 #304D71 #426A9C #6089BB

Accessibility & contrast

On white

8.66
#304D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#304D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D71
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D71#FFFFFF#000000##FFFFFF
##304D711.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F73
Deuteranopia (green-blind)
#364970
Tritanopia (blue-blind)
#06555A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304d71;
/* rgb */ color: rgb(48, 77, 113);
/* oklch */ color: oklch(41.5% 0.070 254.5);
Tailwind
colors: {
  custom: {
    50: '#6e7e9a',
    500: '#304d71',
    950: '#000000',
  },
}
SCSS
$custom: #304d71;
$custom-light: #6e7e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#304d71",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 113
  },
  "hsl": {
    "h": 213.231,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.07005,
    "h": 254.5
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#304D71
secondary
#A2825B
accent
#9A58D0
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #304D71

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

Preview Lab → · Contrast checker → · Palette generator →

#304D71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva