#304397#304397

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

Color values

HEX#304397
RGBrgb(48, 67, 151)
HSLhsl(229, 52%, 39%)
HSVhsv(229, 68%, 59%)
CMYKcmyk(68.2%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.52, 21.44, -48.40)
CIE-LCHlch(31.52, 52.94, 293.89°)
OKLaboklab(41.78% -0.0005 -0.1392)
OKLCHoklch(41.78% 0.139 269.8)
XYZxyz(8.8101, 6.8762, 30.1351)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304397 #978430
analogous
#307797 #304397 #513097
triadic
#304397 #973043 #439730
tetradic
#304397 #973077 #978430 #309751
square
#304397 #973077 #978430 #309751
split-complementary
#304397 #975130 #779730
monochromatic
#121A3A #212E69 #304397 #4159C3 #7082D2

Accessibility & contrast

On white

8.84
#304397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#304397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304397
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304397#FFFFFF#000000##FFFFFF
##3043971.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304397;
/* rgb */ color: rgb(48, 67, 151);
/* oklch */ color: oklch(41.8% 0.139 269.8);
Tailwind
colors: {
  custom: {
    50: '#7576b6',
    500: '#304397',
    950: '#000000',
  },
}
SCSS
$custom: #304397;
$custom-light: #7576b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304397",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 228.932,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.13917,
    "h": 269.8
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#304397
secondary
#B9AA6A
accent
#C14DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304397

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

Preview Lab → · Contrast checker → · Palette generator →

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