#304396#304396

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

Color values

HEX#304396
RGBrgb(48, 67, 150)
HSLhsl(229, 52%, 39%)
HSVhsv(229, 68%, 59%)
CMYKcmyk(68%, 55.3%, 0%, 41.2%)
CIE-LABlab(31.45, 21.07, -47.91)
CIE-LCHlch(31.45, 52.34, 293.74°)
OKLaboklab(41.7% -0.0006 -0.1377)
OKLCHoklch(41.7% 0.138 269.8)
XYZxyz(8.7292, 6.8439, 29.7092)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304396 #968330
analogous
#307696 #304396 #503096
triadic
#304396 #963043 #439630
tetradic
#304396 #963076 #968330 #309650
square
#304396 #963076 #968330 #309650
split-complementary
#304396 #965030 #769630
monochromatic
#121A39 #212E68 #304396 #4159C2 #6F82D1

Accessibility & contrast

On white

8.86
#304396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304396
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304396#FFFFFF#000000##FFFFFF
##3043961.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044F99
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304396;
/* rgb */ color: rgb(48, 67, 150);
/* oklch */ color: oklch(41.7% 0.138 269.8);
Tailwind
colors: {
  custom: {
    50: '#7576b5',
    500: '#304396',
    950: '#000000',
  },
}
SCSS
$custom: #304396;
$custom-light: #7576b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304396",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 150
  },
  "hsl": {
    "h": 228.824,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.13773,
    "h": 269.8
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#304396
secondary
#B9AA69
accent
#C04DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304396

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

Preview Lab → · Contrast checker → · Palette generator →

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