#305181#305181

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

Color values

HEX#305181
RGBrgb(48, 81, 129)
HSLhsl(216, 46%, 35%)
HSVhsv(216, 63%, 51%)
CMYKcmyk(62.8%, 37.2%, 0%, 49.4%)
CIE-LABlab(34.19, 3.92, -30.65)
CIE-LCHlch(34.19, 30.90, 277.29°)
OKLaboklab(43.36% -0.0189 -0.0869)
OKLCHoklch(43.36% 0.089 257.7)
XYZxyz(8.1224, 8.0975, 21.8996)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305181 #816030
analogous
#307A81 #305181 #383081
triadic
#305181 #813051 #518130
tetradic
#305181 #81307A #816030 #308138
square
#305181 #81307A #816030 #308138
split-complementary
#305181 #813830 #7A8130
monochromatic
#0F1928 #1F3554 #305181 #416DAE #668DC6

Accessibility & contrast

On white

8.02
#305181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#305181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305181
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305181#FFFFFF#000000##FFFFFF
##3051811.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5583
Deuteranopia (green-blind)
#324D80
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305181;
/* rgb */ color: rgb(48, 81, 129);
/* oklch */ color: oklch(43.4% 0.089 257.7);
Tailwind
colors: {
  custom: {
    50: '#7081a6',
    500: '#305181',
    950: '#000000',
  },
}
SCSS
$custom: #305181;
$custom-light: #7081a6;
$custom-dark: #000000;
JSON
{
  "hex": "#305181",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 215.556,
    "s": 45.763,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4336,
    "c": 0.08889,
    "h": 257.7
  },
  "luminance": 0.08098
}

Semantic roles & 50–950 ramp

primary
#305181
secondary
#AD8E60
accent
#A052D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #305181

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

Preview Lab → · Contrast checker → · Palette generator →

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