#304098#304098

#304098 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.145 H 270.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#304098
RGBrgb(48, 64, 152)
HSLhsl(231, 52%, 39%)
HSVhsv(231, 68%, 60%)
CMYKcmyk(68.4%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.79, 23.82, -50.20)
CIE-LCHlch(30.79, 55.57, 295.39°)
OKLaboklab(41.25% 0.0022 -0.1445)
OKLCHoklch(41.25% 0.145 270.9)
XYZxyz(8.7179, 6.5614, 30.5067)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304098 #988830
analogous
#307498 #304098 #543098
triadic
#304098 #983040 #409830
tetradic
#304098 #983074 #988830 #309854
square
#304098 #983074 #988830 #309854
split-complementary
#304098 #985430 #749830
monochromatic
#13193B #212C69 #304098 #4256C3 #707FD2

Accessibility & contrast

On white

9.08
#304098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#304098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304098
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304098#FFFFFF#000000##FFFFFF
##3040981.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304098;
/* rgb */ color: rgb(48, 64, 152);
/* oklch */ color: oklch(41.3% 0.145 270.9);
Tailwind
colors: {
  custom: {
    50: '#7574b7',
    500: '#304098',
    950: '#000000',
  },
}
SCSS
$custom: #304098;
$custom-light: #7574b7;
$custom-dark: #000000;
JSON
{
  "hex": "#304098",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 230.769,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41251,
    "c": 0.14453,
    "h": 270.9
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#304098
secondary
#BAAD6A
accent
#C54CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304098

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

Preview Lab → · Contrast checker → · Palette generator →

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