#304099#304099

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

Color values

HEX#304099
RGBrgb(48, 64, 153)
HSLhsl(231, 52%, 39%)
HSVhsv(231, 69%, 60%)
CMYKcmyk(68.6%, 58.2%, 0%, 40%)
CIE-LABlab(30.86, 24.19, -50.69)
CIE-LCHlch(30.86, 56.16, 295.52°)
OKLaboklab(41.33% 0.0023 -0.1459)
OKLCHoklch(41.33% 0.146 270.9)
XYZxyz(8.8001, 6.5943, 30.9399)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304099 #998930
analogous
#307599 #304099 #553099
triadic
#304099 #993040 #409930
tetradic
#304099 #993075 #998930 #309955
square
#304099 #993075 #998930 #309955
split-complementary
#304099 #995530 #759930
monochromatic
#13193C #212D6A #304099 #4256C4 #7180D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304099#FFFFFF#000000##FFFFFF
##3040991.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)
#004E9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304099;
/* rgb */ color: rgb(48, 64, 153);
/* oklch */ color: oklch(41.3% 0.146 270.9);
Tailwind
colors: {
  custom: {
    50: '#7674b8',
    500: '#304099',
    950: '#000000',
  },
}
SCSS
$custom: #304099;
$custom-light: #7674b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304099",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 230.857,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41334,
    "c": 0.14595,
    "h": 270.9
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#304099
secondary
#BAAE6B
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304099

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

Preview Lab → · Contrast checker → · Palette generator →

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