#304199#304199

#304199 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.145 H 270.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#304199
RGBrgb(48, 65, 153)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 69%, 60%)
CMYKcmyk(68.6%, 57.5%, 0%, 40%)
CIE-LABlab(31.13, 23.52, -50.25)
CIE-LCHlch(31.13, 55.48, 295.09°)
OKLaboklab(41.53% 0.0014 -0.1446)
OKLCHoklch(41.53% 0.145 270.6)
XYZxyz(8.8570, 6.7080, 30.9588)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304199 #998830
analogous
#307699 #304199 #543099
triadic
#304199 #993041 #419930
tetradic
#304199 #993076 #998830 #309954
square
#304199 #993076 #998830 #309954
split-complementary
#304199 #995430 #769930
monochromatic
#13193C #212D6A #304199 #4257C4 #7181D2

Accessibility & contrast

On white

8.97
#304199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#304199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304199
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304199#FFFFFF#000000##FFFFFF
##3041991.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304199;
/* rgb */ color: rgb(48, 65, 153);
/* oklch */ color: oklch(41.5% 0.145 270.6);
Tailwind
colors: {
  custom: {
    50: '#7575b8',
    500: '#304199',
    950: '#000000',
  },
}
SCSS
$custom: #304199;
$custom-light: #7575b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304199",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 153
  },
  "hsl": {
    "h": 230.286,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41534,
    "c": 0.14465,
    "h": 270.6
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#304199
secondary
#BAAD6B
accent
#C44CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304199

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

Preview Lab → · Contrast checker → · Palette generator →

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