#304399#304399

#304399 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.142 H 269.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#304399
RGBrgb(48, 67, 153)
HSLhsl(229, 52%, 39%)
HSVhsv(229, 69%, 60%)
CMYKcmyk(68.6%, 56.2%, 0%, 40%)
CIE-LABlab(31.67, 22.19, -49.37)
CIE-LCHlch(31.67, 54.13, 294.20°)
OKLaboklab(41.94% -0.0004 -0.142)
OKLCHoklch(41.94% 0.142 269.8)
XYZxyz(8.9739, 6.9417, 30.9978)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304399 #998630
analogous
#307899 #304399 #523099
triadic
#304399 #993043 #439930
tetradic
#304399 #993078 #998630 #309952
square
#304399 #993078 #998630 #309952
split-complementary
#304399 #995230 #789930
monochromatic
#131A3C #212F6A #304399 #425AC4 #7183D2

Accessibility & contrast

On white

8.79
#304399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#304399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304399
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304399#FFFFFF#000000##FFFFFF
##3043991.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304399;
/* rgb */ color: rgb(48, 67, 153);
/* oklch */ color: oklch(41.9% 0.142 269.8);
Tailwind
colors: {
  custom: {
    50: '#7576b8',
    500: '#304399',
    950: '#000000',
  },
}
SCSS
$custom: #304399;
$custom-light: #7576b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304399",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 153
  },
  "hsl": {
    "h": 229.143,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41939,
    "c": 0.14203,
    "h": 269.8
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#304399
secondary
#BAAC6B
accent
#C24CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304399

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

Preview Lab → · Contrast checker → · Palette generator →

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