#304681#304681

#304681 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.103 H 266.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#304681
RGBrgb(48, 70, 129)
HSLhsl(224, 46%, 35%)
HSVhsv(224, 63%, 51%)
CMYKcmyk(62.8%, 45.7%, 0%, 49.4%)
CIE-LABlab(30.86, 11.22, -35.94)
CIE-LCHlch(30.86, 37.65, 287.35°)
OKLaboklab(40.79% -0.0062 -0.1025)
OKLCHoklch(40.79% 0.103 266.5)
XYZxyz(7.3702, 6.5930, 21.6488)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304681 #816B30
analogous
#306F81 #304681 #433081
triadic
#304681 #813046 #468130
tetradic
#304681 #81306F #816B30 #308143
square
#304681 #81306F #816B30 #308143
split-complementary
#304681 #814330 #6F8130
monochromatic
#0F1628 #1F2E54 #304681 #415EAE #6680C6

Accessibility & contrast

On white

9.06
#304681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#304681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304681
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304681#FFFFFF#000000##FFFFFF
##3046811.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D83
Deuteranopia (green-blind)
#1F4580
Tritanopia (blue-blind)
#00535D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304681;
/* rgb */ color: rgb(48, 70, 129);
/* oklch */ color: oklch(40.8% 0.103 266.5);
Tailwind
colors: {
  custom: {
    50: '#7079a6',
    500: '#304681',
    950: '#000000',
  },
}
SCSS
$custom: #304681;
$custom-light: #7079a6;
$custom-dark: #000000;
JSON
{
  "hex": "#304681",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 129
  },
  "hsl": {
    "h": 223.704,
    "s": 45.763,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40791,
    "c": 0.10265,
    "h": 266.5
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#304681
secondary
#AD9860
accent
#B252D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #304681

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

Preview Lab → · Contrast checker → · Palette generator →

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