#305182#305182

#305182 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.090 H 258.1°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#305182
RGBrgb(48, 81, 130)
HSLhsl(216, 46%, 35%)
HSVhsv(216, 63%, 51%)
CMYKcmyk(63.1%, 37.7%, 0%, 49%)
CIE-LABlab(34.24, 4.28, -31.18)
CIE-LCHlch(34.24, 31.48, 277.82°)
OKLaboklab(43.42% -0.0186 -0.0884)
OKLCHoklch(43.42% 0.09 258.1)
XYZxyz(8.1892, 8.1242, 22.2513)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305182 #826130
analogous
#307A82 #305182 #383082
triadic
#305182 #823051 #518230
tetradic
#305182 #82307A #826130 #308238
square
#305182 #82307A #826130 #308238
split-complementary
#305182 #823830 #7A8230
monochromatic
#0F1929 #1F3555 #305182 #416DAF #668DC6

Accessibility & contrast

On white

8.00
#305182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#305182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305182
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305182#FFFFFF#000000##FFFFFF
##3051821.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5584
Deuteranopia (green-blind)
#314D81
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305182;
/* rgb */ color: rgb(48, 81, 130);
/* oklch */ color: oklch(43.4% 0.090 258.1);
Tailwind
colors: {
  custom: {
    50: '#7081a6',
    500: '#305182',
    950: '#000000',
  },
}
SCSS
$custom: #305182;
$custom-light: #7081a6;
$custom-dark: #000000;
JSON
{
  "hex": "#305182",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 215.854,
    "s": 46.067,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.09034,
    "h": 258.1
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#305182
secondary
#AE8E60
accent
#A152D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #305182

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

Preview Lab → · Contrast checker → · Palette generator →

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