#304299#304299

#304299 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.143 H 270.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#304299
RGBrgb(48, 66, 153)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 69%, 60%)
CMYKcmyk(68.6%, 56.9%, 0%, 40%)
CIE-LABlab(31.40, 22.86, -49.81)
CIE-LCHlch(31.40, 54.81, 294.65°)
OKLaboklab(41.74% 0.0005 -0.1433)
OKLCHoklch(41.74% 0.143 270.2)
XYZxyz(8.9150, 6.8239, 30.9781)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304299 #998730
analogous
#307799 #304299 #523099
triadic
#304299 #993042 #429930
tetradic
#304299 #993077 #998730 #309952
square
#304299 #993077 #998730 #309952
split-complementary
#304299 #995230 #779930
monochromatic
#131A3C #212E6A #304299 #4259C4 #7182D2

Accessibility & contrast

On white

8.88
#304299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#304299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304299
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304299#FFFFFF#000000##FFFFFF
##3042991.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304299;
/* rgb */ color: rgb(48, 66, 153);
/* oklch */ color: oklch(41.7% 0.143 270.2);
Tailwind
colors: {
  custom: {
    50: '#7576b8',
    500: '#304299',
    950: '#000000',
  },
}
SCSS
$custom: #304299;
$custom-light: #7576b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304299",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 153
  },
  "hsl": {
    "h": 229.714,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.14334,
    "h": 270.2
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304299

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

Preview Lab → · Contrast checker → · Palette generator →

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