#304698#304698

#304698 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.137 H 268.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#304698
RGBrgb(48, 70, 152)
HSLhsl(227, 52%, 39%)
HSVhsv(227, 68%, 60%)
CMYKcmyk(68.4%, 53.9%, 0%, 40.4%)
CIE-LABlab(32.42, 19.80, -47.55)
CIE-LCHlch(32.42, 51.51, 292.61°)
OKLaboklab(42.48% -0.0032 -0.1366)
OKLCHoklch(42.48% 0.137 268.6)
XYZxyz(9.0746, 7.2748, 30.6256)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304698 #988230
analogous
#307A98 #304698 #4E3098
triadic
#304698 #983046 #469830
tetradic
#304698 #98307A #988230 #30984E
square
#304698 #98307A #988230 #30984E
split-complementary
#304698 #984E30 #7A9830
monochromatic
#131B3B #213169 #304698 #425DC3 #7085D2

Accessibility & contrast

On white

8.55
#304698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#304698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304698
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304698#FFFFFF#000000##FFFFFF
##3046981.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F519B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005968
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304698;
/* rgb */ color: rgb(48, 70, 152);
/* oklch */ color: oklch(42.5% 0.137 268.6);
Tailwind
colors: {
  custom: {
    50: '#7579b7',
    500: '#304698',
    950: '#000000',
  },
}
SCSS
$custom: #304698;
$custom-light: #7579b7;
$custom-dark: #000000;
JSON
{
  "hex": "#304698",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 227.308,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42481,
    "c": 0.13666,
    "h": 268.6
  },
  "luminance": 0.07276
}

Semantic roles & 50–950 ramp

primary
#304698
secondary
#BAA96A
accent
#BD4CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304698

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

Preview Lab → · Contrast checker → · Palette generator →

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